From: Oleg Broytman Date: Mon, 16 Sep 2019 22:59:46 +0000 (+0300) Subject: Feat(remove-systemd): Run role instead of playbook with 1 task X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9a1252307f058984219663af448cd0da351ee11b;p=ansible.git Feat(remove-systemd): Run role instead of playbook with 1 task --- 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