1
0
mirror of https://github.com/gjkcz/ansible-void.git synced 2024-12-22 11:16:39 +01:00

Add more playbook execution examples

This commit is contained in:
Emil Miler 2023-06-08 15:14:46 +02:00
parent 4d98ceb779
commit 95c75fed12

View File

@ -18,12 +18,23 @@ Void has `sshd` enabled by default as well as having `prohibit-password` set for
## Running a playbook
Here are some examples for running a playbook.
```
ansible-playbook setup.yaml
ansible-playbook -l teachers setup.yaml
ansible-playbook -l VU00.local setup.yaml
ansible-playbook --key-file ~/.ssh/keys/gjk-ansible setup.yaml
```
Tags can be used to execute or exclude specific parts of the playbook.
```
ansible-playbook -t grub setup.yaml
ansible-playbook -t [grub, software] setup.yaml
ansible-playbook --skip-tags software setup.yaml
```
## SSH configuration
You should setup your ssh to avoid unnecessary settings when running a playbook, for example: