Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
841 B

  1. ---
  2. - include_tasks: "{{ role_path }}/tasks/server_base/setup_centos.yml"
  3. when: ansible_distribution == 'CentOS'
  4. - include_tasks: "{{ role_path }}/tasks/server_base/setup_debian.yml"
  5. when: (ansible_os_family == 'Debian') and (ansible_lsb.id != 'Raspbian')
  6. - include_tasks: "{{ role_path }}/tasks/server_base/setup_raspbian.yml"
  7. when: (ansible_os_family == 'Debian') and (ansible_lsb.id == 'Raspbian')
  8. - include_tasks: "{{ role_path }}/tasks/server_base/setup_archlinux.yml"
  9. when: ansible_distribution == 'Archlinux'
  10. - name: Ensure Docker is started and autoruns
  11. service:
  12. name: docker
  13. state: started
  14. enabled: yes
  15. - name: Ensure ntpd is started and autoruns
  16. service:
  17. name: "{{ 'ntpd' if ansible_os_family == 'RedHat' or ansible_distribution == 'Archlinux' else 'ntp' }}"
  18. state: started
  19. enabled: yes