aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/fedora/tasks')
-rw-r--r--roles/fedora/tasks/hostname.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/fedora/tasks/hostname.yml b/roles/fedora/tasks/hostname.yml
index 5299270..2e755ca 100644
--- a/roles/fedora/tasks/hostname.yml
+++ b/roles/fedora/tasks/hostname.yml
@@ -2,11 +2,11 @@
- name: Set hostname
hostname:
name: '{{ hostname }}'
- when: "'container' not in ansible_env"
-- name: '- when in nspawn'
+ when: not chroot
+- name: '- when in chroot'
copy:
dest: /etc/hostname
content: "{{ hostname }}\n"
- when: "'container' in ansible_env"
+ when: chroot
# vim: set ts=2 sw=2 et: