nextcloud.yml 538 B

123456789101112131415161718
  1. ---
  2. - name: apply nextcloud role
  3. collections:
  4. - community.general
  5. - ansible.posix
  6. hosts: web_servers
  7. vars:
  8. ansible_python_interpreter: /usr/bin/python3
  9. # ansible_user: vagrant
  10. # ansible_password: vagrant
  11. # db_host: 192.168.56.13
  12. pre_tasks:
  13. - name: define ansible_python_interpreter group // linux distribution
  14. set_fact:
  15. ansible_python_interpreter: /usr/bin/python2
  16. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
  17. roles:
  18. - { role: nextcloud }