Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua.zhang
2018-11-26 10:27:02 +0800
Commit
eefa246f98a50821553ea3866584cd9802365b3e
1 parent
20b0a110
add global var
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
playbooks/extra_vars/all.yml
playbooks/vault-test.yml
playbooks/extra_vars/all.yml
View file @
eefa246
...
...
@@ -7,3 +7,7 @@ yoho_office_ips:
-
106.39.86.228
-
106.39.86.226
-
106.38.38.147
vault
:
server
:
'
http://10.66.107.2:8200'
token
:
'
27CLyZvYcqawMn7UALUMzRbH'
\ No newline at end of file
...
...
playbooks/vault-test.yml
View file @
eefa246
...
...
@@ -5,7 +5,7 @@
---
-
hosts
:
127.0.0.1
vars
:
qcloud_key
:
"
{{
lookup('hashi_vault',
'secret=yoho/ops/qcloud
token=27CLyZvYcqawMn7UALUMzRbH
url=
http://10.66.107.2:8200
')
}}"
qcloud_key
:
"
{{
lookup('hashi_vault',
'secret=yoho/ops/qcloud
token=27CLyZvYcqawMn7UALUMzRbH
url=
{{vault.server}}
')
}}"
tasks
:
-
name
:
Installing pip modules for using vault lookup
pip
:
name={{item}}
...
...
Please
register
or
login
to post a comment