From bbe24d171ac067233d7e90bb120d30843e2dc1c5 Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Sat, 11 Jul 2026 16:25:40 +0200 Subject: [PATCH] Changed to webdav --- get_network_config.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/get_network_config.yml b/get_network_config.yml index 614793e..c783689 100644 --- a/get_network_config.yml +++ b/get_network_config.yml @@ -37,13 +37,8 @@ creates: "/tmp/config_{{ inventory_hostname }}.txt" - name: Upload vers NAS via WebDAV - uri: - url: "{{ nas_url }}{{ nas_path }}/config_{{ inventory_hostname }}.txt" - method: PUT - user: "{{ nas_user }}" - password: "{{ nas_pass }}" - force_basic_auth: yes - body_file: "/tmp/config_{{ inventory_hostname }}.txt" - status_code: 201, 204 - validate_certs: no + shell: | + curl -k -u {{ nas_user }}:{{ nas_pass }} \ + -T /tmp/config_{{ inventory_hostname }}.txt \ + "{{ nas_url }}{{ nas_path }}/config_{{ inventory_hostname }}.txt" delegate_to: "{{ inventory_hostname }}" \ No newline at end of file