16 lines
424 B
YAML
16 lines
424 B
YAML
---
|
|||
|
|
- name: set authorized key
|
||
|
|
ansible.posix.authorized_key:
|
||
|
|
user: "{{ work_user }}"
|
||
|
|
key: "{{ work_ssh_key }}"
|
||
|
|
when: work_ssh_key | length > 0
|
||
|
|
|
||
|
|
- name: deploy sshd config
|
||
|
|
ansible.builtin.copy:
|
||
|
|
dest: /etc/ssh/sshd_config.d/00-work.conf
|
||
|
|
content: |
|
||
|
|
StreamLocalBindUnlink yes
|
||
|
|
AllowStreamLocalForwarding yes
|
||
|
|
SetEnv PULSE_SERVER=unix:/tmp/pulse.sock
|
||
|
|
mode: "0644"
|
||
|
|
notify: restart sshd
|