News for hackers. Stuff that matters.
Re:Command execution on Ansible controller from host by ensignavenger on Thursday January 12, 2017 @12:12PM (#13384016)
I'm just starting to use Ansible for a major deployment at work, so I am not an expert- can anyone who knows more explain why "ansible_connection" exists as a host definable fact? The controller already knows what host it is connecting to when it retrieves the fact, so why can the host change it?
Re:Command execution on Ansible controller from host by bcoca on Thursday January 12, 2017 @08:59PM (#13387844)
it is not a host definable fact, it is a 'host variable' which you normally define in inventory.
Re:Command execution on Ansible controller from host by ensignavenger on Friday January 13, 2017 @01:06PM (#13392970)
From the advisory:

When Ansible runs on a host, a JSON object with Facts is returned to the Controller. The Controller uses these facts for various housekeeping purposes. Some facts have special meaning, like the fact "ansible_python_interpreter" and "ansible_connection".

So while you may normally define it in the inventory, it sounds like, from the advisory, it can also be defined by the host.