essai.yml 763 B

1234567891011121314151617181920212223242526272829
  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. vars:
  17. redis_daemon: "keydb"
  18. redis_port: "6380"
  19. - role: keepalived
  20. - role: haproxy
  21. vars:
  22. hatarget: "keydb"
  23. redis_vip_port: "6379"
  24. redis_port: "6380"
  25. ssl_self: false
  26. - role: web_php
  27. vars:
  28. redis_daemon: "keydb"
  29. redis_port: "6380"