aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/fedora/tasks')
-rw-r--r--roles/fedora/tasks/dnf.yml2
-rw-r--r--roles/fedora/tasks/hostname.yml2
-rw-r--r--roles/fedora/tasks/networkd.yml2
-rw-r--r--roles/fedora/tasks/resolved.yml8
-rw-r--r--roles/fedora/tasks/timesyncd.yml2
-rw-r--r--roles/fedora/tasks/timezone.yml2
6 files changed, 9 insertions, 9 deletions
diff --git a/roles/fedora/tasks/dnf.yml b/roles/fedora/tasks/dnf.yml
index e1c621f..aa0207e 100644
--- a/roles/fedora/tasks/dnf.yml
+++ b/roles/fedora/tasks/dnf.yml
@@ -41,6 +41,6 @@
when: not chroot
- name: '- when in chroot'
command: "systemctl {{ dnf_makecache|ternary('enable','disable') }} dnf-makecache.timer"
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/hostname.yml b/roles/fedora/tasks/hostname.yml
index 6709c03..214f243 100644
--- a/roles/fedora/tasks/hostname.yml
+++ b/roles/fedora/tasks/hostname.yml
@@ -10,6 +10,6 @@
owner: root
group: root
mode: 0644
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/networkd.yml b/roles/fedora/tasks/networkd.yml
index de38fa4..d643233 100644
--- a/roles/fedora/tasks/networkd.yml
+++ b/roles/fedora/tasks/networkd.yml
@@ -10,6 +10,6 @@
when: not chroot
- name: '- when in chroot'
command: "systemctl {{ use_networkd|ternary('enable','disable') }} systemd-networkd.service"
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/resolved.yml b/roles/fedora/tasks/resolved.yml
index 0190c77..9a6d4c1 100644
--- a/roles/fedora/tasks/resolved.yml
+++ b/roles/fedora/tasks/resolved.yml
@@ -8,7 +8,7 @@
value: "{{ item.value|ternary(item.value,omit) }}"
state: "{{ item.value|ternary('present','absent') }}"
with_dict: '{{ resolved_conf }}'
- when: use_resolved
+ when: use_resolved|bool
notify: restart resolved
- name: Enable/disable systemd-resolved
@@ -20,7 +20,7 @@
when: not chroot
- name: '- when in chroot'
command: "systemctl {{ use_resolved|ternary('enable','disable') }} systemd-resolved.service"
- when: chroot
+ when: chroot|bool
- name: Symlink /etc/resolv.conf
file:
@@ -28,12 +28,12 @@
src: '/run/systemd/resolve/resolv.conf'
state: link
force: yes
- when: use_resolved
+ when: use_resolved|bool
- name: Use myhostname and possibly resolved nss plugins
lineinfile:
path: /etc/nsswitch.conf
regexp: '^hosts:'
line: 'hosts: files resolve [!UNAVAIL=return] dns myhostname'
- when: use_resolved
+ when: use_resolved|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/timesyncd.yml b/roles/fedora/tasks/timesyncd.yml
index 63949fc..180d8c2 100644
--- a/roles/fedora/tasks/timesyncd.yml
+++ b/roles/fedora/tasks/timesyncd.yml
@@ -20,6 +20,6 @@
when: not chroot
- name: '- when in chroot'
command: systemctl enable systemd-timesyncd.service
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/timezone.yml b/roles/fedora/tasks/timezone.yml
index a917dd4..efe6546 100644
--- a/roles/fedora/tasks/timezone.yml
+++ b/roles/fedora/tasks/timezone.yml
@@ -9,6 +9,6 @@
src: '../usr/share/zoneinfo/{{ timezone }}'
state: link
force: yes
- when: chroot
+ when: chroot|bool
# vim: set ts=2 sw=2 et: