Commit bc5d22f6 authored by Andreas Hamacher's avatar Andreas Hamacher Committed by Simon Michnowicz
Browse files

adding role for x11 forwarding

parent a57219e9
- 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