- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
- using inventory:
127.0.0.1 ansible_connection=local
- using Ansible configuration file:
[defaults]
transport = local
- using playbook header:
- hosts: 127.0.0.1
connection: local
I'm not sure it worked this way in all versions of Ansible I'd previously coded for, so I used to always add
connection: local
just to make sure that the connection will not go through SSL.