aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/handlers
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-09-21 23:43:50 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-09-21 23:43:50 +0200
commit09763679131a9c4bfd8d3b891f589b44d42a3657 (patch)
treedc1e531f7886c9012c6a7c9939055115a21da159 /roles/space_server/handlers
parent17b400336cdb3886bc3fd95606de381e0a632097 (diff)
downloadlabitat-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/handlers')
-rw-r--r--roles/space_server/handlers/main.yml22
1 files changed, 11 insertions, 11 deletions
diff --git a/roles/space_server/handlers/main.yml b/roles/space_server/handlers/main.yml
index e8943d3..5ecb341 100644
--- a/roles/space_server/handlers/main.yml
+++ b/roles/space_server/handlers/main.yml
@@ -3,25 +3,25 @@
systemd:
name: nftables.service
state: reloaded
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart networkd
systemd:
name: systemd-networkd.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart blackhole
systemd:
name: blackhole.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart sshd
systemd:
name: sshd.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart bird
systemd:
@@ -30,43 +30,43 @@
with_items:
- bird
- bird6
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart dhcpd
systemd:
name: dhcpd.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart radvd
systemd:
name: radvd.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart radiusd
systemd:
name: radiusd.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart getusers
systemd:
name: getusers.timer
state: restarted
daemon_reload: yes
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart unbound
systemd:
name: unbound.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
- name: restart avahi-daemon
systemd:
name: avahi-daemon.service
state: restarted
- when: "'container' not in ansible_env"
+ when: not chroot
# vim: set ts=2 sw=2 et: