Simplifier la recette du playbook
This commit is contained in:
parent
9a0e25c961
commit
c7c790e608
|
@ -20,4 +20,4 @@ tags
|
||||||
[._]*.un~
|
[._]*.un~
|
||||||
|
|
||||||
# File created by runing the playbook locally
|
# File created by runing the playbook locally
|
||||||
site.retry
|
*.retry
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ $1 = "test" ]]; then
|
if [[ $1 = "test" ]]; then
|
||||||
ansible-playbook --check -i hosts site.yml
|
ansible-playbook --check -i hosts recette.yml
|
||||||
elif [[ $1 = "local" ]]; then
|
elif [[ $1 = "local" ]]; then
|
||||||
ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 \
|
ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 \
|
||||||
site.yml -i hosts
|
recette.yml -i hosts
|
||||||
else
|
else
|
||||||
ansible-playbook -i hosts site.yml
|
ansible-playbook -i hosts recette.yml
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
- name: Installer le serveur
|
||||||
|
hosts: all
|
||||||
|
roles:
|
||||||
|
- common
|
||||||
|
- webserver
|
Loading…
Reference in New Issue