]> git.phdru.name Git - ansible.git/commitdiff
Feat(remove-systemd): Run role instead of playbook with 1 task
authorOleg Broytman <phd@phdru.name>
Mon, 16 Sep 2019 22:59:46 +0000 (01:59 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 16 Sep 2019 22:59:46 +0000 (01:59 +0300)
playbooks/debian/init-system.sh
playbooks/debian/remove-systemd.yml [deleted file]

index 07a8ff76bf5434b09b4fa9757bfae4ef3100d715..7b157f5d4792aad0199a1a19125556984d1f4b27 100755 (executable)
@@ -16,5 +16,5 @@ export ANSIBLE_ROLES_PATH &&
 # `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" &&
+../run-roles debian/remove-systemd.yml "$@" -e hosts="$host" &&
 exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"
diff --git a/playbooks/debian/remove-systemd.yml b/playbooks/debian/remove-systemd.yml
deleted file mode 100644 (file)
index 1c4ddb0..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-- name: Setup Debian system - remove SystemD
-  hosts: "{{ hosts | default('all') }}"
-  gather_facts: false
-  roles:
-    - remove-systemd