# redis ~~ roles/redis/tasks/main.yml # Redis database cache --- - name: ensure redis is installed package: name=redis state=present - name: start and enable redis service service: name: redis state: restarted enabled: true