diff --git a/create_inventory_lxc.yml b/create_inventory_lxc.yml index 8a7b2f3..6f05ef9 100644 --- a/create_inventory_lxc.yml +++ b/create_inventory_lxc.yml @@ -52,7 +52,7 @@ template_options: "-a amd64 -d {{ os_d }} -r {{ os_r }} --no-validate" config: /etc/lxc/ansible.conf register: lxc_created - delegate_to: "{{ ansible_host }}" + delegate_to: "{{ ansible_host|default('localhost') }}" - pause: