Update parameter documentation and .gitignore
This commit is contained in:
parent
f2c24e90e1
commit
db911b40c1
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
*.swp
|
||||
ENV/
|
||||
tmp/
|
||||
|
||||
*.retry
|
||||
*.swp
|
||||
|
|
|
@ -21,11 +21,12 @@ benötigt. Für diesen muss ein SSH-Key hinterlegt sein.
|
|||
|
||||
## Übernehmen der Änderungen für alle Hosts
|
||||
|
||||
ansible-playbook site.yml -i production --sudo --ask-sudo-pass
|
||||
ansible-playbook site.yml -i production -bK
|
||||
|
||||
Zum Testen kann noch `-C` angehängt werden.
|
||||
|
||||
## Ansible Convenience
|
||||
|
||||
Einschränken auf bestimmte Tags, z. B. `nginx`:
|
||||
|
||||
ansible-playbook site.yml -i production --sudo --ask-sudo-pass --tags nginx
|
||||
|
||||
ansible-playbook site.yml -i production -bK --tags nginx
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
if [ $# -gt 0 ]; then
|
||||
ansible-playbook site.yml -i production --sudo --ask-sudo-pass --tags $1
|
||||
ansible-playbook site.yml -i production -bK --tags $1
|
||||
else
|
||||
ansible-playbook site.yml -i production --sudo --ask-sudo-pass
|
||||
ansible-playbook site.yml -i production -bK
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue