27 lines
594 B
YAML
27 lines
594 B
YAML
---
|
|
- include: download.yml
|
|
run_once: true
|
|
delegate_to: "{{ groups['downloader'][0] }}"
|
|
|
|
- name: "Identify init system"
|
|
shell: >
|
|
if $(pgrep systemd > /dev/null); then
|
|
echo systemd;
|
|
else echo sysvinit;
|
|
fi
|
|
always_run: True
|
|
register: init_system_output
|
|
|
|
- set_fact:
|
|
init_system: "{{ init_system_output.stdout }}"
|
|
|
|
- name: Install debian packages requirements
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
when: ansible_os_family == "Debian"
|
|
with_items: req_debian_pkg
|
|
|
|
- include: python-bootstrap.yml
|
|
when: ansible_os_family not in [ "Debian", "RedHat" ]
|