Improve ansible code so that ansibe-lint shows fewer errors
This commit is contained in:
parent
e8ef744f59
commit
f965f4466c
23 changed files with 228 additions and 189 deletions
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: enable pam_mkhomedir.so
|
||||
lineinfile:
|
||||
- name: Enable pam_mkhomedir.so
|
||||
ansible.builtin.lineinfile:
|
||||
dest: /etc/pam.d/common-session
|
||||
line: "session optional pam_mkhomedir.so umask=0077"
|
||||
insertbefore: '^session\s*optional\s*pam_mount.so'
|
||||
|
||||
- name: Patch sddm login screen to inform about localhome
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: /usr/share/sddm/themes/debian-breeze/Main.qml
|
||||
marker: // {mark} ANSIBLE MANAGED BLOCK localhome
|
||||
insertbefore: '\s+//Footer'
|
||||
|
@ -26,11 +26,12 @@
|
|||
ansible.builtin.copy:
|
||||
src: lmn-create-unisonconfig.sh
|
||||
dest: /usr/local/bin/
|
||||
mode: 0755
|
||||
mode: '0755'
|
||||
|
||||
- name: Install auto-logout-script for first login in /etc/profile.d/
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/profile.d/lmn-logout.sh
|
||||
mode: '0755'
|
||||
content: |
|
||||
[[ "${UID}" -gt 10000 ]] && ! findmnt "/lmn/media/${USER}/home" > /dev/null && exit 0
|
||||
{% if 'teacherlaptop' not in group_names %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue