I'm working on a playbook to upgrade all our F5 devices but having trouble
with the download of the ISO from Artifactory to the F5. When I run the
play the file is downloaded but its downloaded to the Ansible control node
not the F5. Here's my play,
---
- hosts:
- lab_f5
gather_facts: no
connection: local
vars_prompt:
- name: f5_user
prompt: "Enter F5 Username"
private: no
- name: f5_password
prompt: "Enter F5 Password"
tasks:
- name: Shell download
shell: curl -vvvv -H 'X-JFrog-Art-API:api_key' -O
https://artifactory.com/repo/F5/BIGIP-14.1.4.3-0.0.8.iso
args:
executable: /bin/bash
chdir: /shared/images
delegate_to: "{{ inventory_hostname }}"
It doesn't seem to matter if I use the delegate_to statement or not. If I
run the play I get a message that the /shared/images doesn't exists and if
I remove the chdir or change the directory to something that exists on my
Ansible control node it works but downloads the file to the control node
not the F5.
Any help or suggestions would be appreciated.
--
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/063deb2e-9958-4a6f-b015-0bc3e5a76a02n%40googlegroups.com.