2021-01-30 18:50:13 +00:00
|
|
|
- name: Load OS Specific Vars
|
|
|
|
include_vars: "{{ lookup('first_found', possible_files) }}"
|
|
|
|
vars:
|
|
|
|
possible_files:
|
|
|
|
- "../vars/{{ ansible_distribution }}.yml"
|
|
|
|
tags: [ 'install', 'prepare' ]
|
|
|
|
|
|
|
|
- include_tasks: update-RedHat.yml
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'RedHat'
|
|
|
|
|
|
|
|
- include_tasks: update-Debian.yml
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'Debian'
|
|
|
|
|
|
|
|
- include_tasks: update-Arch.yml
|
|
|
|
when:
|
2021-08-11 19:31:40 +00:00
|
|
|
- ansible_os_family == 'Archlinux'
|
|
|
|
|
|
|
|
- name: stop services
|
|
|
|
become: yes
|
|
|
|
systemd:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: stopped
|
|
|
|
enabled: no
|
2021-08-11 20:04:55 +00:00
|
|
|
with_items: "{{ stop_service_list }}"
|
2021-08-11 20:01:04 +00:00
|
|
|
tags: [ 'daemon' ]
|
|
|
|
when: ci_run is not defined
|