From d76e9f4a7eaf32810211b1f1049861634af2caf7 Mon Sep 17 00:00:00 2001 From: baldo Date: Sat, 14 Nov 2015 14:06:36 +0100 Subject: [PATCH] srv02 Inventory --- README.md | 4 ++-- deploy.sh | 4 ++-- production | 8 -------- srv02.inventory | 7 +++++++ 4 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 production create mode 100644 srv02.inventory diff --git a/README.md b/README.md index f6dcb66..c64c558 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/deploy.sh b/deploy.sh index 5d24448..a0652e6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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 diff --git a/production b/production deleted file mode 100644 index 902c165..0000000 --- a/production +++ /dev/null @@ -1,8 +0,0 @@ -[services] -srv04 ansible_ssh_host=80.252.100.116 - -[ffhh] -srv04 - -[debian8] -srv04 diff --git a/srv02.inventory b/srv02.inventory new file mode 100644 index 0000000..f9020bd --- /dev/null +++ b/srv02.inventory @@ -0,0 +1,7 @@ +[services] +srv02 ansible_ssh_host=srv02.hamburg.freifunk.net + +[ffhh] +srv02 + +