You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
744 B

  1. ---
  2. - name: Download redis-cell Redis module from GitHub
  3. get_url:
  4. dest: /tmp/redis-cell.tar.gz
  5. url: https://github.com/brandur/redis-cell/releases/download/v0.2.1/redis-cell-v0.2.1-x86_64-unknown-linux-gnu.tar.gz
  6. checksum: sha256:9427fb100f4cada817f30f854ead7f233de32948a0ec644f15988c275a2ed1cb
  7. - name: Create /opt/redis-cell
  8. file:
  9. path: /opt/redis-cell
  10. state: directory
  11. owner: redis
  12. group: redis
  13. mode: 0755
  14. - name: Extract redis-cell
  15. unarchive:
  16. remote_src: true
  17. src: /tmp/redis-cell.tar.gz
  18. dest: /opt/redis-cell
  19. - name: Load redis-cell module in Redis configuration
  20. lineinfile:
  21. path: /etc/redis.conf
  22. line: loadmodule /opt/redis-cell/libredis_cell.so
  23. notify:
  24. - Restart redis