Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
servers-config
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
servers-config
Commits
9bc2ad4b
Commit
9bc2ad4b
authored
Oct 14, 2018
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some warnings from shellcheck
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
d980571a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
deploy
deploy
+9
-9
No files found.
deploy
View file @
9bc2ad4b
...
...
@@ -8,7 +8,7 @@ DIR_ENVIRONMENTS="envs"
DIR_ROLES
=
"roles"
DIR_GROUP_VARS
=
"group_vars"
FILE_VAULT_PASSWORD
=
"vault-password"
#
FILE_VAULT_PASSWORD="vault-password"
BIN_ANSIBLE_PLAYBOOK
=
"ansible-playbook"
...
...
@@ -40,7 +40,7 @@ if [[ ! -d "${env}" ]]; then
echo
echo
"available environments:"
for
available
in
`
ls
-1
"
${
DIR_ENVIRONMENTS
}
"
`
;
do
for
available
in
$(
ls
-1
"
${
DIR_ENVIRONMENTS
}
"
)
;
do
echo
" -
${
available
}
"
done
exit
1
...
...
@@ -50,8 +50,8 @@ if [[ ! -f "${playbook_file}" ]]; then
echo
echo
"available playbooks:"
for
available
in
`
ls
-1
"
${
DIR_PLAYBOOKS
}
"
`
;
do
echo
" -
`
echo
"
${
available
}
"
|
sed
's/\.yml$//'
`
"
for
available
in
$(
ls
-1
"
${
DIR_PLAYBOOKS
}
"
)
;
do
echo
" -
${
available
%.yml
}
"
done
exit
1
fi
...
...
@@ -62,13 +62,13 @@ function cleanup () { rm -rf "$DIR_TEMP"; }
mkdir
-p
"
$DIR_TEMP
/play"
trap
cleanup EXIT
ln
-s
"
`
readlink
-e
"
${
DIR_ROLES
}
"
`
"
"
${
DIR_TEMP
}
/play/roles"
ln
-s
"
`
readlink
-e
"
${
DIR_GROUP_VARS
}
"
`
"
"
${
DIR_TEMP
}
/play/group_vars"
ln
-s
"
`
readlink
-e
"
${
playbook_file
}
"
`
"
"
${
DIR_TEMP
}
/play/playbook.yml"
ln
-s
"
`
readlink
-e
"
${
env
}
"
`
"
"
${
DIR_TEMP
}
/env"
ln
-s
"
$(
readlink
-e
"
${
DIR_ROLES
}
"
)
"
"
${
DIR_TEMP
}
/play/roles"
ln
-s
"
$(
readlink
-e
"
${
DIR_GROUP_VARS
}
"
)
"
"
${
DIR_TEMP
}
/play/group_vars"
ln
-s
"
$(
readlink
-e
"
${
playbook_file
}
"
)
"
"
${
DIR_TEMP
}
/play/playbook.yml"
ln
-s
"
$(
readlink
-e
"
${
env
}
"
)
"
"
${
DIR_TEMP
}
/env"
# Finally execute the playbook against the server
"
${
BIN_ANSIBLE_PLAYBOOK
}
"
-i
"
${
DIR_TEMP
}
/env/hosts"
\
"
${
DIR_TEMP
}
/play/playbook.yml"
\
-vv
--diff
\
$@
"
${
@
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment