I was under the impression that delegate_to comes prior the TASK's
details, like
- name: Download dms ear file to local
delegate_to: localhost
get_url:
url: "https://artifactory.sicpa.com/artifactory/{{
artifactory_folder
}}/com/sicpa/gssd/tt040_my/server/dms/tt040_my-dms-ear/{{
dms_release_version }}/tt040_my-dms-ear-{{ dms_release_version }}.ear"
dest: /tmp
url_username: "{{ v_artifactory_user }}"
url_password: "{{ v_artifactory_passwd }}"
force_basic_auth: yes
#run_once: true
tags: deploy_dms
that aside the error messages makes me think to investigate what HTTP
Error 409 is
<https://www.ecosia.org/search?q=%22HTTP+Error+409%22&addon=opensearch>
and go further down that road
On 19.04.22 13:42, Ashok Reddy wrote:
- name: Download dms ear file to local
get_url:
url: "https://artifactory.sicpa.com/artifactory/{{
artifactory_folder
}}/com/sicpa/gssd/tt040_my/server/dms/tt040_my-dms-ear/{{
dms_release_version }}/tt040_my-dms-ear-{{ dms_release_version }}.ear"
dest: /tmp
url_username: "{{ v_artifactory_user }}"
url_password: "{{ v_artifactory_passwd }}"
force_basic_auth: yes
delegate_to: localhost
#run_once: true
tags: deploy_dms
error:
TASK [Download dms ear file to local]
****************************************** [0;31mfatal:
[dmsdb.tt040int.dev.sicpa.io -> localhost]: FAILED! => {"changed":
false, "dest": "/tmp", "elapsed": 0, "gid": 0, "group": "root",
"mode": "01777", "msg": "Request failed", "owner": "root", "response":
"HTTP Error 409: Conflict", "size": 196, "state": "directory",
"status_code": 409, "uid": 0, "url":
"https://artifactory.sicpa.com/artifactory/gssd-dev-snapshots-local/com/sicpa/gssd/tt040_my/server/dms/tt040_my-dms-ear/2.6.0/tt040_my-dms-ear-2.6.0.ear"}
[0m
--
You received this message because you are subscribed to the Google
Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f68918ba-c58a-466a-a11b-ebf1dc124ccfn%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/f68918ba-c58a-466a-a11b-ebf1dc124ccfn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/db055091-e9ab-25c0-a654-77a69a983452%40mailbox.org.