This allows playbook `init-system2` to gather facts anew
getting that services now must be handled using SysV-init methods.
# `sudo` isn't configured yet too; use `su` and ask for root password.
ansible-playbook ../init-system.yml "$@" -e hosts="$host" \
--become-method=su -K &&
+ansible-playbook remove-systemd.yml "$@" -e hosts="$host" &&
exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"
--- /dev/null
+- name: Setup Debain system - remove SystemD
+ hosts: "{{ hosts | default('all') }}"
+ gather_facts: false
+ roles:
+ - remove-systemd
-- name: Setup Debain system - part 2
+- name: Setup Linux system - part 2
hosts: "{{ hosts | default('all') }}"
gather_facts: true
roles:
- firewall
- logcheck
- - role: remove-systemd
- when: ansible_facts.os_family == 'Debian'
- root
- setup-usrlocal
- sshd
+++ /dev/null
-Empty "role" to satisfy `init-system2`.