redise.yml 817 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - name: ensure download directory
  3. file:
  4. path: /var/tmp/redise
  5. state: directory
  6. mode: 0755
  7. - name: ensure download directory
  8. file:
  9. path: /var/tmp/redise/release
  10. state: directory
  11. mode: 0755
  12. - name: set the answers file
  13. copy:
  14. src: redis.answers
  15. dest: /var/tmp/redise/release/redis.answers
  16. - name: Copy over the tarball
  17. copy:
  18. src: redislabs-5.2.2-22-xenial-amd64.tar.gz
  19. dest: /var/tmp/redise/redislabs-5.2.2-22-xenial-amd64.tar.gz
  20. owner: root
  21. group: root
  22. mode: 0644
  23. - name: Unarchive the tarball
  24. unarchive:
  25. src: /var/tmp/redise/redislabs-5.2.2-22-xenial-amd64.tar.gz
  26. dest: /var/tmp/redise/release/
  27. remote_src: True
  28. - name: Run the install script
  29. command: "/var/tmp/redise/release/install.sh -y -c /var/tmp/redise/release/redis.answers"