Webserver playbook for linuxmuster.
This commit is contained in:
parent
e30a7032a5
commit
3c33cde8c6
2 changed files with 64 additions and 22 deletions
|
@ -1,28 +1,27 @@
|
|||
- name: kerberize sshd server
|
||||
lineinfile:
|
||||
dest: /etc/ssh/sshd_config
|
||||
line: "GSSAPIAuthentication yes"
|
||||
insertafter: "#GSSAPIAuthentication no"
|
||||
- name: Install kerberos packages
|
||||
apt:
|
||||
name: krb5-user
|
||||
state: latest
|
||||
|
||||
- name: Kerberize sshd server
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/ssh/sshd_config.d/kerberize.conf
|
||||
content: |
|
||||
GSSAPIAuthentication yes
|
||||
notify: "reload sshd"
|
||||
|
||||
- name: kerberize ssh client, authenticate
|
||||
lineinfile:
|
||||
dest: /etc/ssh/ssh_config
|
||||
line: "GSSAPIAuthentication yes"
|
||||
insertafter: "# GSSAPIAuthentication no"
|
||||
- name: Kerberize ssh client, authenticate and delegate credentials
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/ssh/ssh_config.d/kerberize.conf
|
||||
content: |
|
||||
GSSAPIAuthentication yes
|
||||
GSSAPIDelegateCredentials yes
|
||||
|
||||
- name: kerberize ssh client, delegate credentials
|
||||
lineinfile:
|
||||
dest: /etc/ssh/ssh_config
|
||||
line: "GSSAPIDelegateCredentials yes"
|
||||
insertafter: "# GSSAPIDelegateCredentials no"
|
||||
|
||||
|
||||
- name: check if firefox is available
|
||||
- name: Check if firefox is available
|
||||
stat: path=/etc/firefox-esr/firefox-esr.js
|
||||
register: firefox
|
||||
|
||||
- name: kerberize firefox for sites in the local domain
|
||||
- name: Kerberize firefox for sites in the local domain
|
||||
lineinfile:
|
||||
dest: /etc/firefox-esr/firefox-esr.js
|
||||
line: "{{ item }}"
|
||||
|
@ -32,12 +31,12 @@
|
|||
- 'pref("network.negotiate-auth.trusted-uris", "{{ kerberize_uris | default(ansible_domain) }}");'
|
||||
when: firefox.stat.exists
|
||||
|
||||
- name: ensures /etc/chromium/policies/managed dir exists
|
||||
file:
|
||||
- name: Ensures /etc/chromium/policies/managed dir exists
|
||||
file:
|
||||
path: "/etc/chromium/policies/managed"
|
||||
state: directory
|
||||
|
||||
- name: kerberize chromium for sites in the local domain
|
||||
- name: Kerberize chromium for sites in the local domain
|
||||
copy:
|
||||
dest: /etc/chromium/policies/managed/idam.json
|
||||
content: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue