Compare commits

..

2 commits

3 changed files with 13 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- import_playbook: consul-server.yml
- import_playbook: vault-server.yml
- import_playbook: consul-client.yml
- import_playbook: docker.yml
- import_playbook: nomad.yml
- import_playbook: nexus.yml
- import_playbook: lnd.yml

View file

@ -85,6 +85,7 @@
VAULT_ADDR: https://vault.service.masked.name:8200
VAULT_TOKEN: "{{ lookup('file', lookup('env', 'HOME') + '/.vault-token') }}"
VAULT_FORMAT: json
VAULT_CACERT: /etc/ssl/certs/MaskedName_Root_CA.crt
register: cert_data
when: exp.rc != 0

View file

@ -31,4 +31,15 @@
- docker-ce
- docker-ce-cli
- containerd.io
- name: ensure docker certs directory exists
file:
path: /etc/docker/certs.d/docker.service.{{ consul_domain }}:8082
state: directory
- name: symlink ca cert
file:
src: /etc/pki/certs/{{ vault_ca_cert_name }}
dest: /etc/docker/certs.d/docker.service.{{ consul_domain }}:8082/ca.crt
state: link
...