Changed to webdav
This commit is contained in:
@@ -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 }}"
|
||||
Reference in New Issue
Block a user