From 5ac47012b3d21841b14b9862bf48178601102e70 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 21 Apr 2018 21:14:11 +0200 Subject: [PATCH] ansible: updated readme --- ansible/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/README.md b/ansible/README.md index e29e7ca..48541bb 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -16,6 +16,8 @@ ansible-playbook foo.yml -D -C # -m ... load module shell # -a ... arguments to module call ansible vex -m shell -a 'uname -a' +ansible servers -m apt -a 'name=foo state=present' +ansible desktops -m file -a 'name=/make/sure/this/file/is/gone state=absent' ``` ### check if all server are reachable @@ -33,7 +35,7 @@ ansible-playbook foo.yml ./apply-role.sh wuerfel base ``` -### deploy a single role to a group of hosts using additional options +### deploy a single role to a group of hosts with check-mode to see what would be done ``` ./apply-role.sh servers base -C -D ``` -- 1.7.10.4