diff --git a/.gitignore b/.gitignore index 96d6c00..d5f767f 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ tags [._]*.un~ # File created by runing the playbook locally -site.retry +*.retry diff --git a/deploy.sh b/deploy.sh index a9009d5..c4952e4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,10 +1,10 @@ #!/bin/bash if [[ $1 = "test" ]]; then - ansible-playbook --check -i hosts site.yml + ansible-playbook --check -i hosts recette.yml elif [[ $1 = "local" ]]; then ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 \ - site.yml -i hosts + recette.yml -i hosts else - ansible-playbook -i hosts site.yml + ansible-playbook -i hosts recette.yml fi diff --git a/recette.yml b/recette.yml new file mode 100644 index 0000000..938a052 --- /dev/null +++ b/recette.yml @@ -0,0 +1,5 @@ +- name: Installer le serveur + hosts: all + roles: + - common + - webserver diff --git a/site.yml b/site.yml deleted file mode 100644 index dc9b5e4..0000000 --- a/site.yml +++ /dev/null @@ -1,9 +0,0 @@ -- name: Setup common utilities - hosts: all - roles: - - common - -- name: Setup web server - hosts: all - roles: - - webserver