aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks/hostname.yml
blob: 2e755ca4b44e534cae2fac6b3977679017e2cfbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: Set hostname
  hostname:
    name: '{{ hostname }}'
  when: not chroot
- name: '- when in chroot'
  copy:
    dest: /etc/hostname
    content: "{{ hostname }}\n"
  when: chroot

# vim: set ts=2 sw=2 et: