From 09763679131a9c4bfd8d3b891f589b44d42a3657 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Fri, 21 Sep 2018 23:43:50 +0200 Subject: Use one variable for chroot or nspawn environment --- roles/space_server/tasks/bird.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/space_server/tasks/bird.yml') diff --git a/roles/space_server/tasks/bird.yml b/roles/space_server/tasks/bird.yml index 17f0a99..8f4e20b 100644 --- a/roles/space_server/tasks/bird.yml +++ b/roles/space_server/tasks/bird.yml @@ -55,14 +55,14 @@ with_items: - bird - bird6 - when: "'container' not in ansible_env" -- name: '- when in nspawn' + when: not chroot +- name: '- when in chroot' command: 'systemctl enable {{ item }}.service' args: creates: '/etc/systemd/system/multi-user.target.wants/{{ item }}.service' with_items: - bird - bird6 - when: "'container' in ansible_env" + when: chroot # vim: set ts=2 sw=2 et: -- cgit v1.2.1