Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ pyasn1==0.3.7
pycparser==2.18
pycrypto==2.6.1
PyNaCl==1.2.0
PyYAML==3.12
PyYAML==5.1
six==1.11.0
8 changes: 5 additions & 3 deletions roles/ssh_server/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
set_fact:
user_ca_key: "{{ lookup('file', 'lilik_ca_s1.pub') }}"

- name: Update container user CA key
copy:
content: "{{ user_ca_key }}"
- name: Update container user CA cert
lineinfile:
line: "{{ user_ca_key }} +AnsibleManaged_CA_cert"
regexp: " \+AnsibleManaged_CA_cert"
dest: "/etc/ssh/user_ca.pub"
create: yes
notify: restart ssh

- name: Validate SSH host certificate if any
Expand Down