Commit 445e703d authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

lvm-snapshots: alter config s.t. deploykeys is taken from vault

parent 6bf98599
...@@ -7,25 +7,9 @@ ...@@ -7,25 +7,9 @@
- lvm-snapshots - lvm-snapshots
- directory - directory
- name: ensure we know our deploy key
local_action: pass name="deploy-key/lvm-snapshots" state=present store=FSMPI_PASSWORD_STORE_DIR limit=no
register: deploy_key
no_log: True
tags:
- lvm-snapshots
- password
- name: ensure we know our public deploy key
local_action: pass name="deploy-key/lvm-snapshots-public" state=present store=FSMPI_PASSWORD_STORE_DIR limit=no
register: deploy_key_public
no_log: True
tags:
- lvm-snapshots
- password
- name: ensure our deploy key is present - name: ensure our deploy key is present
copy: copy:
content: "{{deploy_key.password}}\n" src: "{{ inventory_dir }}/files/deploy-keys/lvm-snapshots"
dest: /root/.ssh/lvm-snapshots.key dest: /root/.ssh/lvm-snapshots.key
owner: root owner: root
group: root group: root
...@@ -37,7 +21,7 @@ ...@@ -37,7 +21,7 @@
- name: ensure our public deploy key is present - name: ensure our public deploy key is present
copy: copy:
content: "{{deploy_key_public.password}}\n" src: "{{ inventory_dir }}/files/deploy-keys/lvm-snapshots.pub"
dest: /root/.ssh/lvm-snapshots.pub dest: /root/.ssh/lvm-snapshots.pub
owner: root owner: root
group: root group: root
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment