Commit 55a3c9e5 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

Merge branch 'x11fwdonmonarchlogins' into 'master'

adding role for x11 forwarding

See merge request !548
parents a57219e9 bc5d22f6
- name: "restart sshdx11"
service: name=sshd state=restarted
become: true
when: ansible_os_family == "RedHat"
- name: "restart sshx11"
service: name=ssh state=restarted
become: true
when: ansible_os_family == "Debian"
- name: "Enable x11 forwarding"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "X11Forwarding no"
line: "X11Forwarding yes"
backrefs: yes
become: true
notify:
- restart sshdx11
- restart sshx11
- name: "uncomment x11displayoffset"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "#X11DisplayOffset 10"
line: "X11DisplayOffset 10"
backrefs: yes
become: true
notify:
- restart sshdx11
- restart sshx11
- name: "set x11uselocalhost no"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "#X11UseLocalhost yes"
line: "X11UseLocalhost no"
backrefs: yes
become: true
notify:
- restart sshdx11
- restart sshx11
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment