Skip to content

Commit 7fd88c3

Browse files
committed
add sshca role
1 parent 378cafd commit 7fd88c3

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

images/capi/ansible/roles/sshca/files/ssh_ca.pub

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- name: add the ssh ca public key
2+
ansible.builtin.copy:
3+
dest: /etc/ssh/ssh_ca.pub
4+
mode: "644"
5+
src: ssh_ca.pub
6+
- name: set authorized principals
7+
ansible.builtin.copy:
8+
dest: /etc/ssh/authorized_principals
9+
# Couldn't get this to use the `ssh_username` variable
10+
content: |
11+
ubuntu
12+
- name: add ssh ca settings
13+
ansible.builtin.copy:
14+
dest: /etc/ssh/sshd_config.d/ca.conf
15+
content: |
16+
TrustedUserCAKeys /etc/ssh/ssh_ca.pub
17+
AuthorizedPrincipalsFile /etc/ssh/authorized_principals
18+

0 commit comments

Comments
 (0)