From 95c75fed1240128f2842d7309299bc5f46f7bbc9 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Thu, 8 Jun 2023 15:14:46 +0200 Subject: [PATCH] Add more playbook execution examples --- readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/readme.md b/readme.md index a0f7228..7c591c2 100644 --- a/readme.md +++ b/readme.md @@ -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: