. ├── ansible.cfg ├── hosts └── playbool.yml
[defaults] hostfile = hosts remote_user = vagrant private_key_file = .vagrant/machines/default/virtualbox/private_key host_key_checking = False
testserver ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222
--- - hosts: localhost gather_facts: yes vars: key1: value1 key2: value2 vars_files: - extra_vars.yml tasks: ...
. ├── ansible.cfg ├── gitlab.yml ├── group_vars │ └── vagrant.yml ├── host_vars │ └── testserver.yml └── hosts
[defaults] hostfile = hosts host_key_checking = False
[vagrant] testserver
--- ansible_ssh_user: vagrant ansible_ssh_private_key_file: .vagrant/machines/default/virtualbox/private_key
--- ansible_ssh_host: 127.0.0.1 ansible_ssh_port: 2222