diff --git a/roles/custom/fvs/files/lmn-codeblocks.sh b/roles/custom/fvs/files/lmn-codeblocks.sh deleted file mode 100644 index 27f24b3..0000000 --- a/roles/custom/fvs/files/lmn-codeblocks.sh +++ /dev/null @@ -1,15 +0,0 @@ -if [[ "$UID" -gt 10000 ]] && [[ ! -f ~/.config/codeblocks/default.conf ]] ; then - mkdir -p ~/.config/codeblocks - cat < ~/.config/codeblocks/default.conf - - - - - - - - - - -EOF -fi diff --git a/roles/custom/fvs/tasks/main.yml b/roles/custom/fvs/tasks/main.yml index 3e1e756..b5e1094 100644 --- a/roles/custom/fvs/tasks/main.yml +++ b/roles/custom/fvs/tasks/main.yml @@ -156,11 +156,6 @@ dest: /etc/profile.d/ mode: '0644' -- name: Copy codeblocks config scripts - ansible.builtin.copy: - src: lmn-codeblocks.sh - dest: /etc/profile.d/ - mode: '0644' - name: Copy fvs-config.js to configure plasma ansible.builtin.copy: @@ -193,15 +188,6 @@ action/switch_user=false #action/lock_screen=false -- name: Configure NumLock ON - ansible.builtin.blockinfile: - path: /etc/xdg/kcminputrc - create: true - mode: '0644' - block: | - [Keyboard] - NumLock=0 - - name: Start with empty session by default ansible.builtin.copy: dest: /etc/xdg/ksmserverrc diff --git a/roles/lmn_exam/tasks/main.yml b/roles/lmn_exam/tasks/main.yml index 1d0893e..838fd68 100644 --- a/roles/lmn_exam/tasks/main.yml +++ b/roles/lmn_exam/tasks/main.yml @@ -52,11 +52,10 @@ - name: Append teacherPC to exam_destination_allowed_ipv4 addresses ansible.builtin.set_fact: - exam_destination_allowed_ipv4: "{{ exam_destination_allowed_ipv4 + (exam_teacherpc_ips | default([ ansible_default_ipv4.address.rsplit('.', 1)[0] ~ '.' ~ exam_teacherpc_last_digit ])) }}" + exam_destination_allowed_ipv4: "{{ exam_destination_allowed_ipv4 + [ ansible_default_ipv4.address[:-1] ~ exam_teacherpc_last_digit ] }}" when: - exam_destination_allowed_ipv4 is defined - exam_destination_allowed_ipv4 | length > 0 - - exam_teacherpc_ips is defined or exam_teacherpc_last_digit | default('') | string | length > 0 - name: Install no-way-out-policy ansible.builtin.template: diff --git a/roles/lmn_sssd/templates/sssd.conf.j2 b/roles/lmn_sssd/templates/sssd.conf.j2 index 1591f1d..fef5d02 100644 --- a/roles/lmn_sssd/templates/sssd.conf.j2 +++ b/roles/lmn_sssd/templates/sssd.conf.j2 @@ -9,9 +9,7 @@ ad_domain = {{ domain }} id_provider = ad access_provider = ad use_fully_qualified_names = False -{% if localhome is defined and localhome %} cache_credentials = True -{% endif %} krb5_store_password_if_offline = True default_shell = /usr/bin/bash # default: # ldap_id_mapping = True