You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I have 2 vms both running centos and ansible, running a get_url test and the playbook runs fine and says changed = 1 but the file never gets downloaded to the target
I have apache running on the server that hosts the file (root owns the remote dir - /var/www/html
Any ideas? Thanks.
ansible v 2.3.0.0
########
--- # GET URL EXAMPLE - hosts: 10.10.0.5 user: ansible become: yes tasks: - name: get url example from the target and download get_url: url: http://10.10.0.5/index.html dest: /home/ansible/index.html (Tried /tmp also) owner: ansible mode: 0755
Dick Visser
unread,
Jul 3, 2017, 12:16:35 PM7/3/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
What comes to mind:
* debug with -vvvv
* run tcpdump on the initiating host to see if packets get out
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hi. I havent had any problems running other playbooks against this target, and I can ping the destination ansible server.
When I run -vvvv I get the output below, looked through it, cant see where the issue is
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
PLAYBOOK: geturl.yml ********************************************************************************************************************* 1 plays in geturl.yml
PLAY [10.10.0.5] *************************************************************************************************************************
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible list
Explain what you're expecting, because this indicates the file is
already downloaded
and the checksum matches. I might be reading it wrong, or have the
wrong end of the stick...?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project, di...@hellooperator.net
Hi. What I am expecting is just for the file to be downloaded from the remote host to the local (again both vms')
The output tells me that it has run (and flagged as changed) - but when I look into the local target dir - the file is never there..am I missing something?
Message has been deleted
J Hawkesworth
unread,
Jul 4, 2017, 3:15:05 AM7/4/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project, di...@hellooperator.net
The output above seems to be saying that the file /home/ansible/index.html is present on 10.10.0.5.
If you are expecting the file to be re-downloaded each time the playbook runs, then set 'force: yes' in your playbook, otherwise it will not attempt to fetch the file again.
Jon
Anfield
unread,
Jul 7, 2017, 3:27:26 PM7/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project, di...@hellooperator.net
Hi Joe. Yes the file does exist on 10.10.0.5...I thought get-url would download from the target (10.10.0.5) to the local ansible server (My master I am runing the playbook from)
Unless I am misunderstanding how this should work.?
Dick Visser
unread,
Jul 7, 2017, 6:25:08 PM7/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com, di...@hellooperator.net