From 9a1252307f058984219663af448cd0da351ee11b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 17 Sep 2019 01:59:46 +0300 Subject: [PATCH] Feat(remove-systemd): Run role instead of playbook with 1 task --- playbooks/debian/init-system.sh | 2 +- playbooks/debian/remove-systemd.yml | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 playbooks/debian/remove-systemd.yml diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 07a8ff7..7b157f5 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -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 index 1c4ddb0..0000000 --- a/playbooks/debian/remove-systemd.yml +++ /dev/null @@ -1,5 +0,0 @@ -- name: Setup Debian system - remove SystemD - hosts: "{{ hosts | default('all') }}" - gather_facts: false - roles: - - remove-systemd -- 2.39.5