essai.yml 615 B

123456789101112131415161718192021
  1. ---
  2. - name: apply a test role
  3. collections:
  4. - community.general
  5. - ansible.posix
  6. hosts: test_servers
  7. vars:
  8. ansible_python_interpreter: /usr/bin/python3
  9. pre_tasks:
  10. - name: define ansible_python_interpreter group // linux distribution
  11. set_fact:
  12. ansible_python_interpreter: /usr/bin/python2
  13. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
  14. roles:
  15. #- role: redis
  16. # when: redis_daemon == "redis" or redis_daemon == "keydb"
  17. #- role: web_php
  18. # vars:
  19. # enable_php_fpm: false
  20. - role: mariadb
  21. #- role: nextcloud