forked from tilde-fr/infra
Le playbook peut être lancé en local avec ./deploy.sh local
This commit is contained in:
parent
83082057f9
commit
f951ce7597
|
@ -0,0 +1,23 @@
|
|||
# ---> Vim
|
||||
# Swap
|
||||
[._]*.s[a-v][a-z]
|
||||
!*.svg # comment out if you don't need vector files
|
||||
[._]*.sw[a-p]
|
||||
[._]s[a-rt-v][a-z]
|
||||
[._]ss[a-gi-z]
|
||||
[._]sw[a-p]
|
||||
|
||||
# Session
|
||||
Session.vim
|
||||
Sessionx.vim
|
||||
|
||||
# Temporary
|
||||
.netrwhist
|
||||
*~
|
||||
# Auto-generated tag files
|
||||
tags
|
||||
# Persistent undo
|
||||
[._]*.un~
|
||||
|
||||
# File created by runing the playbook locally
|
||||
site.retry
|
10
deploy.sh
10
deploy.sh
|
@ -1,2 +1,10 @@
|
|||
#!/bin/bash
|
||||
ansible-playbook -i hosts site.yml
|
||||
|
||||
if [[ $1 = "test" ]]; then
|
||||
ansible-playbook --check -i hosts site.yml
|
||||
elif [[ $1 = "local" ]]; then
|
||||
ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 \
|
||||
site.yml -i hosts
|
||||
else
|
||||
ansible-playbook -i hosts site.yml
|
||||
fi
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
fr.yml
|
Loading…
Reference in New Issue