diff --git a/get_network_config.yml b/get_network_config.yml index 1ea3f4c..614793e 100644 --- a/get_network_config.yml +++ b/get_network_config.yml @@ -43,6 +43,7 @@ user: "{{ nas_user }}" password: "{{ nas_pass }}" force_basic_auth: yes - body: "{{ lookup('file', '/tmp/config_' ~ inventory_hostname ~ '.txt') }}" + body_file: "/tmp/config_{{ inventory_hostname }}.txt" status_code: 201, 204 - validate_certs: no \ No newline at end of file + validate_certs: no + delegate_to: "{{ inventory_hostname }}" \ No newline at end of file