* linting Signed-off-by: Sebastian Gumprich <[email protected]> * more linting Signed-off-by: Sebastian Gumprich <[email protected]> * change line length issues Signed-off-by: Sebastian Gumprich <[email protected]> * replace yes with true in tasks Signed-off-by: Sebastian Gumprich <[email protected]> * use manual line-wrapping because ansible-lint does not support it correctly. see https://github.com/ansible/ansible-lint/issues/2522 * use manual line-wrapping because ansible-lint does not support it correctly. see https://github.com/ansible/ansible-lint/issues/2522 Signed-off-by: Sebastian Gumprich <[email protected]> * use manual line-wrapping because ansible-lint does not support it correctly. see https://github.com/ansible/ansible-lint/issues/2522 Signed-off-by: Sebastian Gumprich <[email protected]> * add exception for task Signed-off-by: Sebastian Gumprich <[email protected]> * remove trailing whitespace * add back deleted params Signed-off-by: Sebastian Gumprich <[email protected]> * add back deleted params Signed-off-by: Sebastian Gumprich <[email protected]> * add back tasks Signed-off-by: Sebastian Gumprich <[email protected]>
28 lines
914 B
YAML
28 lines
914 B
YAML
---
|
|
- name: Set ssh CA pub keys
|
|
ansible.builtin.template:
|
|
src: trusted_user_ca_keys.j2
|
|
dest: "{{ ssh_trusted_user_ca_keys_file }}"
|
|
mode: "0644"
|
|
owner: "{{ ssh_owner }}"
|
|
group: "{{ ssh_group }}"
|
|
notify: Restart sshd
|
|
|
|
- name: Create ssh authorized principals directories
|
|
ansible.builtin.file:
|
|
path: "{{ item.path | dirname }}"
|
|
mode: '{{ item.directorymode | default("700") }}'
|
|
owner: "{{ item.directoryowner | default(ssh_owner) }}"
|
|
group: "{{ item.directorygroup | default(ssh_group) }}"
|
|
state: directory
|
|
loop: "{{ ssh_authorized_principals }}"
|
|
|
|
- name: Set ssh authorized principals
|
|
ansible.builtin.template:
|
|
src: authorized_principals.j2
|
|
dest: "{{ item.path }}"
|
|
mode: '{{ item.filemode | default("600") }}'
|
|
owner: "{{ item.owner | default(ssh_owner) }}"
|
|
group: "{{ item.group | default(ssh_group) }}"
|
|
loop: "{{ ssh_authorized_principals }}"
|