diff --git a/ansible/group_vars/all/main.yml b/ansible/group_vars/all/main.yml index 8f86de3..129d00c 100644 --- a/ansible/group_vars/all/main.yml +++ b/ansible/group_vars/all/main.yml @@ -1,7 +1,7 @@ --- -# general -site_domain: minhas.io - # consul consul_version: 1.8.3 + +# vault +vault_version: 1.5.2 ... diff --git a/ansible/host_vars/fatman.minhas.io/main.yml b/ansible/host_vars/fatman.minhas.io/main.yml index c310f7a..ff399e3 100644 --- a/ansible/host_vars/fatman.minhas.io/main.yml +++ b/ansible/host_vars/fatman.minhas.io/main.yml @@ -1,3 +1,4 @@ --- consul_dc: columbia +consul_config_path: /usr/local/etc/consul.d ... diff --git a/ansible/inventory.txt b/ansible/inventory.txt index abc3672..ed90648 100644 --- a/ansible/inventory.txt +++ b/ansible/inventory.txt @@ -1,4 +1,8 @@ [consul_server] -ivyking.minhas.io fatman.minhas.io +ivyking.minhas.io +sedan.minhas.io + +[vault_server] +ivyking.minhas.io sedan.minhas.io diff --git a/ansible/playbooks/consul-server.yml b/ansible/playbooks/consul-server.yml new file mode 100644 index 0000000..fa79f31 --- /dev/null +++ b/ansible/playbooks/consul-server.yml @@ -0,0 +1,5 @@ +--- +- hosts: consul_server + roles: + - role: consul_server +... diff --git a/ansible/playbooks/site.yml b/ansible/playbooks/site.yml index 5c3bfdc..a66a226 100644 --- a/ansible/playbooks/site.yml +++ b/ansible/playbooks/site.yml @@ -3,7 +3,6 @@ roles: - role: common -- hosts: consul_server - roles: - - role: consul_server +- import_playbook: consul-server.yml +- import_playbook: vault-server.yml ... diff --git a/ansible/playbooks/vault-server.yml b/ansible/playbooks/vault-server.yml new file mode 100644 index 0000000..187e3b3 --- /dev/null +++ b/ansible/playbooks/vault-server.yml @@ -0,0 +1,5 @@ +--- +- hosts: vault_server + roles: + - role: vault_server +... diff --git a/ansible/requirements.txt b/ansible/requirements.txt index 79f45a7..659e2db 100644 --- a/ansible/requirements.txt +++ b/ansible/requirements.txt @@ -1,8 +1,14 @@ ansible==2.9.12 +certifi==2020.6.20 cffi==1.14.2 +chardet==3.0.4 cryptography==3.0 +hvac==0.10.5 +idna==2.10 Jinja2==2.11.2 MarkupSafe==1.1.1 pycparser==2.20 PyYAML==5.3.1 +requests==2.24.0 six==1.15.0 +urllib3==1.25.10