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.
48 lines
1.8 KiB
48 lines
1.8 KiB
5 years ago
|
---
|
||
|
|
||
2 years ago
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_redhat.yml"
|
||
2 years ago
|
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version | int < 8
|
||
4 years ago
|
|
||
2 years ago
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_redhat8.yml"
|
||
2 years ago
|
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version | int > 7 and ansible_distribution_major_version | int < 30
|
||
3 years ago
|
|
||
2 years ago
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_fedora.yml"
|
||
2 years ago
|
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version | int > 30
|
||
5 years ago
|
|
||
2 years ago
|
- when: ansible_os_family == 'Debian'
|
||
|
block:
|
||
4 years ago
|
# ansible_lsb is only available if lsb-release is installed.
|
||
|
- name: Ensure lsb-release installed
|
||
2 years ago
|
ansible.builtin.apt:
|
||
4 years ago
|
name:
|
||
|
- lsb-release
|
||
|
state: present
|
||
3 years ago
|
update_cache: true
|
||
4 years ago
|
register: lsb_release_installation_result
|
||
5 years ago
|
|
||
4 years ago
|
- name: Reread ansible_lsb facts if lsb-release got installed
|
||
2 years ago
|
ansible.builtin.setup:
|
||
|
filter: ansible_lsb*
|
||
4 years ago
|
when: lsb_release_installation_result.changed
|
||
|
|
||
2 years ago
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_debian.yml"
|
||
4 years ago
|
when: (ansible_os_family == 'Debian') and (ansible_lsb.id != 'Raspbian')
|
||
|
|
||
2 years ago
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_raspbian.yml"
|
||
4 years ago
|
when: (ansible_os_family == 'Debian') and (ansible_lsb.id == 'Raspbian')
|
||
5 years ago
|
|
||
2 years ago
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/server_base/setup_archlinux.yml"
|
||
5 years ago
|
when: ansible_distribution == 'Archlinux'
|
||
|
|
||
5 years ago
|
- name: Ensure Docker is started and autoruns
|
||
2 years ago
|
ansible.builtin.service:
|
||
5 years ago
|
name: docker
|
||
|
state: started
|
||
3 years ago
|
enabled: true
|
||
5 years ago
|
|
||
2 years ago
|
- name: "Ensure ntpd is started and autoruns"
|
||
2 years ago
|
ansible.builtin.service:
|
||
5 years ago
|
name: "{{ matrix_ntpd_service }}"
|
||
5 years ago
|
state: started
|
||
3 years ago
|
enabled: true
|