aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks/hostname.yml
blob: 214f2438b136fd1ae64ac20739135800468086a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: Set hostname
  hostname:
    name: '{{ hostname }}'
  when: not chroot
- name: '- when in chroot'
  copy:
    dest: '/etc/hostname'
    content: "{{ hostname }}\n"
    owner: root
    group: root
    mode: 0644
  when: chroot|bool

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