aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian/tasks/networkd.yml
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/debian/tasks/networkd.yml
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/debian/tasks/networkd.yml')
-rw-r--r--roles/debian/tasks/networkd.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/debian/tasks/networkd.yml b/roles/debian/tasks/networkd.yml
index 967dace..3ad37df 100644
--- a/roles/debian/tasks/networkd.yml
+++ b/roles/debian/tasks/networkd.yml
@@ -10,7 +10,7 @@
when: not chroot
- name: '- when in chroot'
command: "systemctl {{ use_networkd|ternary('enable','disable') }} systemd-networkd.service"
- when: chroot
+ when: chroot|bool
# in Debian 9 (stretch) we need to enable this manually
# this is fixed in buster though
@@ -22,7 +22,7 @@
when: ansible_distribution_release == 'stretch' and not chroot
- name: '- when in chroot'
command: "systemctl {{ use_networkd|ternary('enable','disable') }} systemd-networkd-wait-online.service"
- when: ansible_distribution_release == 'stretch' and chroot
+ when: ansible_distribution_release == 'stretch' and chroot|bool
# use RequiredForOnline in systemd.network files if possible,
# but for older systemd's set networkd_ignore: ['eth0', 'eth1']
@@ -53,6 +53,6 @@
block:
- command: systemctl disable networking.service
- command: systemctl mask networking.service
- when: use_networkd and chroot
+ when: use_networkd|bool and chroot|bool
# vim: set ts=2 sw=2 et: