Skip to content

Commit

Permalink
Merge pull request #76 from pschiffe/master
Browse files Browse the repository at this point in the history
Store passwords securely in ansible example
  • Loading branch information
Peter Schiffer committed Jun 6, 2016
2 parents de66e05 + fa9d1d8 commit d5d3145
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible/wordpress/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- hosts: localhost
vars:
c_state: reloaded
vars_files:
- vault.yml
tasks:
- name: mariadb container
docker:
Expand All @@ -13,7 +15,7 @@
net: bridge
volumes: mariadb-data:/var/lib/mysql
env:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_ROOT_PASSWORD: "{{ mysql_root_pw }}"
- name: wordpress container
docker:
name: my-wordpress
Expand Down
7 changes: 7 additions & 0 deletions ansible/wordpress/vault.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ANSIBLE_VAULT;1.1;AES256
35663038366161303835373432653036373861303334333139326462303166326465303839356162
3438353337343730306264306461323238386137653562370a303964303638633736653165616439
31666165343338616361353132666463633837626533643537336363633738353237333733346634
3733363964333663330a636237303934383665303536613233646233336366373035616439346132
34313734393933633663366335316238333663616338353733396139626332623738373733633738
6566623432316635333963376433656162613466373166653463

0 comments on commit d5d3145

Please sign in to comment.