srv02 Inventory
This commit is contained in:
parent
c954cb28dc
commit
d76e9f4a7e
|
@ -21,11 +21,11 @@ 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 srv02.inventory --sudo --ask-sudo-pass
|
||||
|
||||
## 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 srv02.inventory --sudo --ask-sudo-pass --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 srv02.inventory --sudo --ask-sudo-pass --tags $1
|
||||
else
|
||||
ansible-playbook site.yml -i production --sudo --ask-sudo-pass
|
||||
ansible-playbook site.yml -i srv02.inventory --sudo --ask-sudo-pass
|
||||
fi
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
[services]
|
||||
srv04 ansible_ssh_host=80.252.100.116
|
||||
|
||||
[ffhh]
|
||||
srv04
|
||||
|
||||
[debian8]
|
||||
srv04
|
7
srv02.inventory
Normal file
7
srv02.inventory
Normal file
|
@ -0,0 +1,7 @@
|
|||
[services]
|
||||
srv02 ansible_ssh_host=srv02.hamburg.freifunk.net
|
||||
|
||||
[ffhh]
|
||||
srv02
|
||||
|
||||
|
Loading…
Reference in a new issue