Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated RHEL-08-020050 to loop over stdout_lines. Fixes issue #261. #262

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions tasks/fix-cat2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3434,23 +3434,24 @@
line: |
[org/gnome/settings-daemon/peripherals/smartcard]
removal-action='lock-screen'
when: rhel_08_020050_removal_action.stdout | length == 0
when: rhel_08_020050_removal_action.stdout_lines | length == 0
notify: dconf update

- name: "MEDIUM | RHEL-08-020050 | PATCH | RHEL 8 must be able to initiate directly a session lock for all connection types using smartcard when the smartcard is removed. | Update removal-action if exists"
ansible.builtin.lineinfile:
path: "{{ item }}"
regexp: ^removal-action=
line: removal-action='lock-screen'
loop: "{{ rhel_08_020050_removal_action.stdout }}"
when: rhel_08_020050_removal_action.stdout | length > 0
loop: "{{ rhel_08_020050_removal_action.stdout_lines }}"
when: rhel_08_020050_removal_action.stdout_lines | length > 0
notify: dconf update

- name: "MEDIUM | RHEL-08-020050 | PATCH | RHEL 8 must be able to initiate directly a session lock for all connection types using smartcard when the smartcard is removed. | Set smartcard section of db"
ansible.builtin.lineinfile:
path: '/etc/dconf/db/distro.d/locks/{{ rhel_08_020050_removal_action_file.stdout }}'
path: '/etc/dconf/db/distro.d/locks/{{ item }}'
uk-bolly marked this conversation as resolved.
Show resolved Hide resolved
line: /org/gnome/settings-daemon/peripherals/smartcard/removal-action
when: rhel_08_020050_removal_action_file.stdout | length > 0
loop: "{{ rhel_08_020050_removal_action_file.stdout_lines }}"
when: rhel_08_020050_removal_action_file.stdout_lines | length > 0
notify: dconf update

- name: "MEDIUM | RHEL-08-020050 | PATCH | RHEL 8 must be able to initiate directly a session lock for all connection types using smartcard when the smartcard is removed. | Set smartcard section of db"
Expand All @@ -3461,7 +3462,7 @@
owner: root
group: root
mode: 0640
when: rhel_08_020050_removal_action_file.stdout | length == 0
when: rhel_08_020050_removal_action_file.stdout_lines | length == 0
notify: dconf update
when:
- rhel_08_020050
Expand Down