]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - 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
index 34eab7a9c23489b3d71edf3da4029d843033edd8..16a4172f7f47638567f541192f99ef13f1ddcebc 100644 (file)
@@ -7,4 +7,4 @@
     - hostname
   hostname: >
     name="{{ inventory_hostname_short }}"
-  when: "ansible_distribution != 'OpenBSD'"
+  when: "ansible_distribution != 'OpenBSD' and ansible_virtualization_type != 'lxc'"