diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-21 23:43:50 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-21 23:43:50 +0200 |
commit | 09763679131a9c4bfd8d3b891f589b44d42a3657 (patch) | |
tree | dc1e531f7886c9012c6a7c9939055115a21da159 /roles/space_server/tasks/dhcpd.yml | |
parent | 17b400336cdb3886bc3fd95606de381e0a632097 (diff) | |
download | labitat-ansible-09763679131a9c4bfd8d3b891f589b44d42a3657.tar.gz labitat-ansible-09763679131a9c4bfd8d3b891f589b44d42a3657.tar.xz labitat-ansible-09763679131a9c4bfd8d3b891f589b44d42a3657.zip |
Use one variable for chroot or nspawn environment
Diffstat (limited to 'roles/space_server/tasks/dhcpd.yml')
-rw-r--r-- | roles/space_server/tasks/dhcpd.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/space_server/tasks/dhcpd.yml b/roles/space_server/tasks/dhcpd.yml index a15ce49..53ad1a6 100644 --- a/roles/space_server/tasks/dhcpd.yml +++ b/roles/space_server/tasks/dhcpd.yml @@ -21,11 +21,11 @@ enabled: yes masked: no state: started - when: "'container' not in ansible_env" -- name: '- when in nspawn' + when: not chroot +- name: '- when in chroot' command: systemctl enable dhcpd.service args: creates: '/etc/systemd/system/multi-user.target.wants/dhcpd.service' - when: "'container' in ansible_env" + when: chroot # vim: set ts=2 sw=2 et: |