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 # vim: set ts=2 sw=2 et: