Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

44 wiersze
1.4 KiB

  1. ---
  2. - include_tasks: "{{ role_path }}/tasks/server_base/setup_centos.yml"
  3. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version < '8'
  4. - include_tasks: "{{ role_path }}/tasks/server_base/setup_centos8.yml"
  5. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version > '7'
  6. - block:
  7. # ansible_lsb is only available if lsb-release is installed.
  8. - name: Ensure lsb-release installed
  9. apt:
  10. name:
  11. - lsb-release
  12. state: present
  13. update_cache: true
  14. register: lsb_release_installation_result
  15. - name: Reread ansible_lsb facts if lsb-release got installed
  16. setup: filter=ansible_lsb*
  17. when: lsb_release_installation_result.changed
  18. - include_tasks: "{{ role_path }}/tasks/server_base/setup_debian.yml"
  19. when: (ansible_os_family == 'Debian') and (ansible_lsb.id != 'Raspbian')
  20. - include_tasks: "{{ role_path }}/tasks/server_base/setup_raspbian.yml"
  21. when: (ansible_os_family == 'Debian') and (ansible_lsb.id == 'Raspbian')
  22. when: ansible_os_family == 'Debian'
  23. - include_tasks: "{{ role_path }}/tasks/server_base/setup_archlinux.yml"
  24. when: ansible_distribution == 'Archlinux'
  25. - name: Ensure Docker is started and autoruns
  26. service:
  27. name: docker
  28. state: started
  29. enabled: true
  30. - name: "Ensure {{ matrix_ntpd_service }} is started and autoruns"
  31. service:
  32. name: "{{ matrix_ntpd_service }}"
  33. state: started
  34. enabled: true