projects
/
noc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f21af8f
)
ansible: updated readme
author
Christian Pointner
<equinox@realraum.at>
Sat, 21 Apr 2018 19:14:11 +0000
(21:14 +0200)
committer
Christian Pointner
<equinox@realraum.at>
Sat, 21 Apr 2018 19:14:11 +0000
(21:14 +0200)
ansible/README.md
patch
|
blob
|
history
diff --git
a/ansible/README.md
b/ansible/README.md
index
e29e7ca
..
48541bb
100644
(file)
--- 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'
# -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
```
### check if all server are reachable
@@
-33,7
+35,7
@@
ansible-playbook foo.yml
./apply-role.sh wuerfel base
```
./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
```
```
./apply-role.sh servers base -C -D
```