Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Using Ansible command line
- ```bash
- ansible-playbook --connection=local --inventory 127.0.0.1, playbook.yml
- ```
- ## Using inventory
- ```ini
- 127.0.0.1 ansible_connection=local
- ```
- ## Using Ansible configuration file
- ```ini
- [defaults]
- transport = local
- ```
- # Using playbook header
- ```yaml
- - hosts: 127.0.0.1
- connection: local
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement