]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/net-base/tasks/main.yml
net-base: Don't set the host name inside of LXC containers
[AnsibleRoles.git] / roles / net-base / tasks / main.yml
1 ---
2 # net-base tasks
3
4 - name: configure hostname
5   tags:
6     - networking
7     - hostname
8   hostname: >
9     name="{{ inventory_hostname_short }}"
10   when: "ansible_distribution != 'OpenBSD' and ansible_virtualization_type != 'lxc'"