diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2020-02-27 20:01:17 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2020-02-27 20:01:43 +0100 |
commit | ecb6482396c969c6e0eb3e06c182c7bfb91d54fe (patch) | |
tree | f9f96c899fb9a6dd09eff524e91574a6206ea29c /roles/debian/tasks/networkd.yml | |
parent | 199f459ea883aa0f375ff0a22079969b60e7ca62 (diff) | |
download | labitat-ansible-ecb6482396c969c6e0eb3e06c182c7bfb91d54fe.tar.gz labitat-ansible-ecb6482396c969c6e0eb3e06c182c7bfb91d54fe.tar.xz labitat-ansible-ecb6482396c969c6e0eb3e06c182c7bfb91d54fe.zip |
roles: remove useless |bool filters
This used to be a fix for some bogus warnings, but
they seem to have gone in recent versions of Ansible
Diffstat (limited to 'roles/debian/tasks/networkd.yml')
-rw-r--r-- | roles/debian/tasks/networkd.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/debian/tasks/networkd.yml b/roles/debian/tasks/networkd.yml index 49b3041..bed76a0 100644 --- a/roles/debian/tasks/networkd.yml +++ b/roles/debian/tasks/networkd.yml @@ -10,7 +10,7 @@ value: "{{ (item.value is string)|ternary(item.value,omit) }}" state: "{{ (item.value is string)|ternary('present','absent') }}" with_dict: '{{ networkd_conf }}' - when: use_networkd|bool + when: use_networkd - name: Enable/disable systemd-networkd systemd: @@ -23,7 +23,7 @@ when: not chroot - name: '- when in chroot' command: "systemctl {{ use_networkd|ternary('enable','disable') }} systemd-networkd.service" - when: chroot|bool + when: chroot # in Debian 9 (stretch) we need to enable this manually # this is fixed in buster though @@ -35,7 +35,7 @@ when: apt_release|default(ansible_distribution_release) == 'stretch' and not chroot - name: '- when in chroot' command: "systemctl {{ use_networkd|ternary('enable','disable') }} systemd-networkd-wait-online.service" - when: apt_release|default(ansible_distribution_release) == 'stretch' and chroot|bool + when: apt_release|default(ansible_distribution_release) == 'stretch' and chroot # use RequiredForOnline in systemd.network files if possible, # but for older systemd's set networkd_ignore: ['eth0', 'eth1'] @@ -66,6 +66,6 @@ block: - command: systemctl disable networking.service - command: systemctl mask networking.service - when: use_networkd|bool and chroot|bool + when: use_networkd and chroot|bool # vim: set ts=2 sw=2 et: |