diff --git a/roles/vault_ssh_keys/tasks/main.yml b/roles/vault_ssh_keys/tasks/main.yml index a864ae9..671f7f9 100755 --- a/roles/vault_ssh_keys/tasks/main.yml +++ b/roles/vault_ssh_keys/tasks/main.yml @@ -7,6 +7,7 @@ - name: Facts ansible.builtin.setup: when: ansible_facts.architecture is not defined + - name: Install dependencies apt: name: @@ -117,8 +118,11 @@ mode: '0644' - name: Create vault agent config - copy: + ansible.builtin.copy: dest: /etc/vault-agent/config.hcl + owner: root + group: root + mode: '0644' content: | vault { address = "http://vault.home.lan:8205" @@ -142,32 +146,32 @@ } } - template { destination = "/home/jd/.ssh/id_ed25519-cert.pub" - perms = "0644" - user = "jd" - group = "jd" + perms = "0644" + user = "jd" + group = "jd" + contents = <