aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora
diff options
context:
space:
mode:
Diffstat (limited to 'roles/fedora')
-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/sshd.yml2
-rw-r--r--roles/fedora/tasks/timesyncd.yml2
-rw-r--r--roles/fedora/tasks/timezone.yml2
7 files changed, 10 insertions, 10 deletions
diff --git a/roles/fedora/tasks/dnf.yml b/roles/fedora/tasks/dnf.yml
index 73f5b4b..50f11ec 100644
--- a/roles/fedora/tasks/dnf.yml
+++ b/roles/fedora/tasks/dnf.yml
@@ -47,6 +47,6 @@
when: not chroot
- name: '- when in chroot'
command: "systemctl {{ dnf_makecache|ternary('enable','disable') }} dnf-makecache.timer"
- when: chroot|bool
+ when: chroot
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/hostname.yml b/roles/fedora/tasks/hostname.yml
index 214f243..6709c03 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|bool
+ when: chroot
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/networkd.yml b/roles/fedora/tasks/networkd.yml
index d643233..de38fa4 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|bool
+ when: chroot
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/resolved.yml b/roles/fedora/tasks/resolved.yml
index 9b8d589..35c2cf6 100644
--- a/roles/fedora/tasks/resolved.yml
+++ b/roles/fedora/tasks/resolved.yml
@@ -10,7 +10,7 @@
value: "{{ (item.value is string)|ternary(item.value,omit) }}"
state: "{{ (item.value is string)|ternary('present','absent') }}"
with_dict: '{{ resolved_conf }}'
- when: use_resolved|bool
+ when: use_resolved
notify: restart resolved
- name: Enable/disable systemd-resolved
@@ -22,7 +22,7 @@
when: not chroot
- name: '- when in chroot'
command: "systemctl {{ use_resolved|ternary('enable','disable') }} systemd-resolved.service"
- when: chroot|bool
+ when: chroot
- name: Symlink /etc/resolv.conf
file:
@@ -30,12 +30,12 @@
src: '/run/systemd/resolve/resolv.conf'
state: link
force: yes
- when: use_resolved|bool
+ when: use_resolved
- 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|bool
+ when: use_resolved
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/sshd.yml b/roles/fedora/tasks/sshd.yml
index 603fbf9..91f08ec 100644
--- a/roles/fedora/tasks/sshd.yml
+++ b/roles/fedora/tasks/sshd.yml
@@ -46,6 +46,6 @@
when: not chroot
- name: '- when in chroot'
command: systemctl enable sshd.service
- when: chroot|bool
+ when: chroot
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/timesyncd.yml b/roles/fedora/tasks/timesyncd.yml
index 17693c3..8b53cab 100644
--- a/roles/fedora/tasks/timesyncd.yml
+++ b/roles/fedora/tasks/timesyncd.yml
@@ -22,6 +22,6 @@
when: not chroot
- name: '- when in chroot'
command: systemctl enable systemd-timesyncd.service
- when: chroot|bool
+ when: chroot
# vim: set ts=2 sw=2 et:
diff --git a/roles/fedora/tasks/timezone.yml b/roles/fedora/tasks/timezone.yml
index efe6546..a917dd4 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|bool
+ when: chroot
# vim: set ts=2 sw=2 et: