All -
I am having hell with this:
getLog = ansible.runner.Runner(
forks=100,
inventory=ansible.inventory.Inventory('inventory'),
module_name='fetch',
module_args='src=/tmp/logs.tar.gz dest=./output/?????????/logs flat=yes
validate_md5=no',
).run()
In line 5, you can see I put a whole bunch of ?????????. If I were writing
a playbook, I would have something like {{ ansible_ssh_host }} there.
I want the IP address of the target so that when everything is done, I have
all my server logs back on my machine.
I have verified, the logs (/tmp/logs.tar.gz) ARE there, and if I try and
fetch them without a varible it works...but they all overwrite each other.
Anybody have an idea??
Thanks!
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/b591d1fa-7947-4698-8d3c-e483df418a7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.