Hi,
New ansible user here. I come from a puppet background and am liking ansible much more.
I'm trying to understand the rationale for ansible-pull verses ssh with remote port forwarding.
ansible-pull requires that ansible and git be installed on the managed node.
I'm currently running ansible in pull mode using normal ssh reverse port forwarding, and don't require anything extra to be installed/stored on the managed node.
Can anyone see any problems with how I am doing this that would make ansible-pull a better solution?
In push mode I'd run the playbook as:
ansible-playbook ~/.ansible/site.yml -l node1
To run in pull mode, I edit the inventory file to have an entry for node1 like so:
node1 ansible_ssh_host=127.0.0.1 ansible_ssh_port=5000
Then run this command on the managed node.
ssh server -R 5000:localhost:22 'ansible-playbook ~/.ansible/site.yml -l node1'
ansible runs on the server in push mode and uses the forwarded port to connect to the managed node. This is an easier solution for me than using ansible-pull, but I haven't seen anyone mention it on the list.
Regards,
Dion.
--
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 ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.