main.yml 370 B

12345678910111213141516171819
  1. ---
  2. - name: Redis installed
  3. community.general.pkgng:
  4. name: "redis"
  5. state: latest
  6. - name: Redis enabled
  7. shell: sysrc redis_enable="YES"
  8. - name: Redis conf file installed
  9. template:
  10. src: redis.conf.j2
  11. dest: /usr/local/etc/redis.conf
  12. owner: root
  13. mode: 0644
  14. notify: Redis restarted
  15. - name: Redis started
  16. service: name=redis state=started