aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2019-07-06 14:43:04 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2019-07-06 14:56:06 +0200
commit4f29dbb2b82f0c29bdb385741ac1852550c1e210 (patch)
tree0f69220d1a1208527e39826b8208cc7f72081b03 /roles/space_server
parentfe81c24477abd25f218dde33ff6e23616a90330f (diff)
downloadlabitat-ansible-4f29dbb2b82f0c29bdb385741ac1852550c1e210.tar.gz
labitat-ansible-4f29dbb2b82f0c29bdb385741ac1852550c1e210.tar.xz
labitat-ansible-4f29dbb2b82f0c29bdb385741ac1852550c1e210.zip
roles: fix warnings about bare boolean variables
Diffstat (limited to 'roles/space_server')
-rw-r--r--roles/space_server/tasks/avahi.yml2
-rw-r--r--roles/space_server/tasks/bird.yml2
-rw-r--r--roles/space_server/tasks/dhcpd.yml2
-rw-r--r--roles/space_server/tasks/gettys.yml4
-rw-r--r--roles/space_server/tasks/named.yml4
-rw-r--r--roles/space_server/tasks/nftables.yml2
-rw-r--r--roles/space_server/tasks/radius.yml4
-rw-r--r--roles/space_server/tasks/sshd.yml2
8 files changed, 11 insertions, 11 deletions
diff --git a/roles/space_server/tasks/avahi.yml b/roles/space_server/tasks/avahi.yml
index 2e715bb..4dd4e74 100644
--- a/roles/space_server/tasks/avahi.yml
+++ b/roles/space_server/tasks/avahi.yml
@@ -85,7 +85,7 @@
command: systemctl enable avahi-daemon.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/avahi-daemon.service'
- when: chroot
+ when: chroot|bool
- name: Use nss-mdns
lineinfile:
diff --git a/roles/space_server/tasks/bird.yml b/roles/space_server/tasks/bird.yml
index a5cd85a..3687910 100644
--- a/roles/space_server/tasks/bird.yml
+++ b/roles/space_server/tasks/bird.yml
@@ -61,6 +61,6 @@
with_items:
- bird
- bird6
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/space_server/tasks/dhcpd.yml b/roles/space_server/tasks/dhcpd.yml
index 79d2f0f..e591a85 100644
--- a/roles/space_server/tasks/dhcpd.yml
+++ b/roles/space_server/tasks/dhcpd.yml
@@ -20,6 +20,6 @@
command: systemctl enable dhcpd.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/dhcpd.service'
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/space_server/tasks/gettys.yml b/roles/space_server/tasks/gettys.yml
index ea351f4..2d2511a 100644
--- a/roles/space_server/tasks/gettys.yml
+++ b/roles/space_server/tasks/gettys.yml
@@ -9,7 +9,7 @@
command: systemctl disable getty@tty1.service
args:
removes: '/etc/systemd/system/getty.target.wants/getty@tty1.service'
- when: chroot
+ when: chroot|bool
- name: Enable serial-getty@ttyS0
systemd:
@@ -20,6 +20,6 @@
command: systemctl enable serial-getty@ttyS0.service
args:
creates: '/etc/systemd/system/getty.target.wants/serial-getty@ttyS0.service'
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/space_server/tasks/named.yml b/roles/space_server/tasks/named.yml
index 519b5d4..30ab544 100644
--- a/roles/space_server/tasks/named.yml
+++ b/roles/space_server/tasks/named.yml
@@ -63,9 +63,9 @@
masked: no
state: started
when: not chroot
-- name: '- when in nspawn'
+- name: '- when in chroot'
command: systemctl enable named.service
- when: chroot
+ when: chroot|bool
- name: Use our own resolver
copy:
diff --git a/roles/space_server/tasks/nftables.yml b/roles/space_server/tasks/nftables.yml
index 9c56714..67d0864 100644
--- a/roles/space_server/tasks/nftables.yml
+++ b/roles/space_server/tasks/nftables.yml
@@ -37,6 +37,6 @@
command: systemctl enable nftables.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/nftables.service'
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/space_server/tasks/radius.yml b/roles/space_server/tasks/radius.yml
index a3f4183..f918052 100644
--- a/roles/space_server/tasks/radius.yml
+++ b/roles/space_server/tasks/radius.yml
@@ -98,7 +98,7 @@
command: systemctl enable getusers.timer
args:
creates: '/etc/systemd/system/timers.target.wants/getusers.timer'
- when: chroot
+ when: chroot|bool
- name: Create service drop-in directory
file:
@@ -127,6 +127,6 @@
command: systemctl enable radiusd.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/radiusd.service'
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/space_server/tasks/sshd.yml b/roles/space_server/tasks/sshd.yml
index 2f8d35a..14597b4 100644
--- a/roles/space_server/tasks/sshd.yml
+++ b/roles/space_server/tasks/sshd.yml
@@ -49,6 +49,6 @@
command: systemctl enable sshd.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/sshd.service'
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et: