update-system/tasks/main.yml
Tobias Trabelsi 93b101ac50
All checks were successful
continuous-integration/drone/push Build is passing
fixed with loop and added vagrant test
2021-08-11 22:04:55 +02:00

29 lines
640 B
YAML

- 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:
- ansible_os_family == 'Archlinux'
- name: stop services
become: yes
systemd:
name: "{{ item }}"
state: stopped
enabled: no
with_items: "{{ stop_service_list }}"
tags: [ 'daemon' ]
when: ci_run is not defined