--- - name: apply nextcloud role collections: - community.general - ansible.posix hosts: web_servers vars: ansible_python_interpreter: /usr/bin/python3 pre_tasks: - name: define ansible_python_interpreter group // linux distribution set_fact: ansible_python_interpreter: /usr/bin/python2 when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7' roles: - role: redis vars: redis_daemon: "keydb" redis_port: "6380" - role: keepalived - role: haproxy vars: hatarget: "keydb" redis_vip_port: "6380" redis_port: "6380" ssl_self: false - role: web_php vars: enable_php_fpm: false redis_daemon: "keydb" redis_port: "6380" - role: nextcloud vars: NEXTCLOUD_VERSION: "24.0.8" redis_port: "6380"