aboutsummaryrefslogblamecommitdiffstats
path: root/roles/fedora/tasks/hostname.yml
blob: 6709c03278d5093f6f76db0e1ded8f35da2b225c (plain) (tree)
1
2
3
4
5
6
7
8
9



                          

                          
       
                         
                               


               
              

                        
---
- 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

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