Changed to webdav
This commit is contained in:
@@ -37,13 +37,8 @@
|
|||||||
creates: "/tmp/config_{{ inventory_hostname }}.txt"
|
creates: "/tmp/config_{{ inventory_hostname }}.txt"
|
||||||
|
|
||||||
- name: Upload vers NAS via WebDAV
|
- name: Upload vers NAS via WebDAV
|
||||||
uri:
|
shell: |
|
||||||
url: "{{ nas_url }}{{ nas_path }}/config_{{ inventory_hostname }}.txt"
|
curl -k -u {{ nas_user }}:{{ nas_pass }} \
|
||||||
method: PUT
|
-T /tmp/config_{{ inventory_hostname }}.txt \
|
||||||
user: "{{ nas_user }}"
|
"{{ nas_url }}{{ nas_path }}/config_{{ inventory_hostname }}.txt"
|
||||||
password: "{{ nas_pass }}"
|
|
||||||
force_basic_auth: yes
|
|
||||||
body_file: "/tmp/config_{{ inventory_hostname }}.txt"
|
|
||||||
status_code: 201, 204
|
|
||||||
validate_certs: no
|
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
Reference in New Issue
Block a user