Add ansible.cfg and set the inventory file
This commit is contained in:
parent
a598cfae07
commit
665f48503a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.log
|
|
@ -1,13 +1,13 @@
|
|||
# macbook-provisioning
|
||||
|
||||
```bash
|
||||
$ ansible-playbook -i inventory playbook.yml -K
|
||||
$ ansible-playbook playbook.yml -K
|
||||
```
|
||||
|
||||
Run everything.
|
||||
|
||||
```bash
|
||||
$ ansible-playbook -i inventory playbook.yml -K -t <tag>
|
||||
$ ansible-playbook playbook.yml -K -t <tag>
|
||||
```
|
||||
|
||||
Run a specific tag.
|
||||
|
|
4
ansible.cfg
Normal file
4
ansible.cfg
Normal file
|
@ -0,0 +1,4 @@
|
|||
[defaults]
|
||||
log_path = ./log/ansible.log
|
||||
hostfile = ./inventory
|
||||
inventory = ./inventory
|
0
log/.gitkeep
Normal file
0
log/.gitkeep
Normal file
Loading…
Reference in a new issue