2023-08-29 11:14:23 +02:00
|
|
|
---
|
|
|
|
- name: Fetch the public key from the HashiCorp Vault
|
|
|
|
ansible.builtin.get_url:
|
2024-07-12 14:53:42 +02:00
|
|
|
url: https://{{ hashicorp_vault_address }}/v1/ssh/public_key
|
2023-08-29 11:14:23 +02:00
|
|
|
dest: /etc/ssh/sshd_config.d/trusted-user-ca-keys.pem
|
|
|
|
mode: 0600
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
|
|
|
|
- name: Add config for trusted user CA keys
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: files/10-ca.conf
|
|
|
|
dest: /etc/ssh/sshd_config.d/10-ca.conf
|
|
|
|
mode: 0600
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify: "Restart SSH server"
|