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.

35 lines
1.1 KiB

  1. ---
  2. - name: Download redis-cell Redis module (x86_64) from GitHub
  3. when: ansible_facts['architecture'] == 'x86_64'
  4. get_url:
  5. dest: /tmp/redis-cell.tar.gz
  6. url: https://github.com/brandur/redis-cell/releases/download/v0.4.0/redis-cell-v0.4.0-x86_64-unknown-linux-gnu.tar.gz
  7. checksum: sha256:f86380f692c3852502e7c8924915a3424a4614ba01d7feec4cbc3c1faf22fb28
  8. - name: Download redis-cell Redis module (aarch64) from GitHub
  9. when: ansible_facts['architecture'] == 'aarch64'
  10. get_url:
  11. dest: /tmp/redis-cell.tar.gz
  12. url: https://github.com/brandur/redis-cell/releases/download/v0.4.0/redis-cell-v0.4.0-aarch64-unknown-linux-gnu.tar.gz
  13. checksum: sha256:bff45476b45c5e7da7e840076f35e91f83641960e5860620063da7b070f154bc
  14. - name: Create /opt/redis-cell
  15. file:
  16. path: /opt/redis-cell
  17. state: directory
  18. owner: redis
  19. group: redis
  20. mode: 0755
  21. - name: Extract redis-cell
  22. unarchive:
  23. remote_src: true
  24. src: /tmp/redis-cell.tar.gz
  25. dest: /opt/redis-cell
  26. - name: Load redis-cell module in Redis configuration
  27. lineinfile:
  28. path: /etc/redis.conf
  29. line: loadmodule /opt/redis-cell/libredis_cell.so
  30. notify:
  31. - Restart redis