13 lines
298 B
YAML
13 lines
298 B
YAML
---
|
|
- name: Ensure SSH X11 forwarding is enabled
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/ssh/sshd_config
|
|
regexp: '^#?X11Forwarding'
|
|
line: 'X11Forwarding yes'
|
|
state: present
|
|
backup: yes
|
|
|
|
- name: Restart sshd
|
|
ansible.builtin.systemd_service:
|
|
name: sshd
|
|
state: restarted |