Dear all,
i am new to the awesomeness of ansible.
i've done some playbooks for now an am amazed of the capability of ansible.
:)
great product.
Now i got to a certain point where i could need some help.
My Setup:
The ansible version i am using is: Anisble 1.9.4
I am running ansible on a Red Hat Enterprise Linux Server release 6.7
(Santiago)
i am controlling Linux nodes with Ansible from the same system distribution
My Problem/Question:
I've created a Playbook that is going to copy a template towards my node.
while doing this it inserts some facts information via the template plugin.
After that i am going to fetch that file back to my Ansible master.
Now i want to execute a local python script on my ansible master to parse
those files into a database.
But i don't have any idea how to do that.
I would be so happy if anyone could give me a hint :)
Thanks in advance.
Best regards,
Martin
Playbook
---
# instance facts linux
- hosts: Linux
become: yes
become_method: sudo
roles:
- nodeInfoLinux
Role tasks:
---
# tasks file for nodeInfo
- name: Fill template with server information
template: src=setup.j2 dest=/tmp/facts-{{ansible_hostname}}
- name: Gather Facts to Local repository
fetch: src=/tmp/facts-{{ansible_hostname}}
dest=/srv/ansible/inventory-facts/facts-{{ansible_hostname}} flat=yes
--
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/a9fb286f-7af0-4fd6-8b39-0ad1adcad4d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.