Skip to content

Commit 69218ef

Browse files
authored
Merge pull request #14346 from ggbecker/fix-ansible-unique-variables3
Fix SELinux ansible variable name conflict
2 parents 4c7c456 + 566c230 commit 69218ef

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

linux_os/guide/system/selinux/selinux_not_disabled/ansible/shared.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- name: "{{{ rule_title }}} - Check current SELinux state"
88
ansible.builtin.command:
99
cmd: getenforce
10-
register: selinux_state
10+
register: current_selinux_state
1111
check_mode: false
1212
changed_when: false
1313

@@ -19,4 +19,4 @@
1919
state: touch
2020
access_time: preserve
2121
modification_time: preserve
22-
when: selinux_state.stdout | lower != "permissive"
22+
when: current_selinux_state.stdout | lower != "permissive"

linux_os/guide/system/selinux/selinux_state/ansible/shared.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- name: "{{{ rule_title }}} - Check current SELinux state"
99
ansible.builtin.command:
1010
cmd: getenforce
11-
register: selinux_state
11+
register: current_selinux_state
1212
check_mode: false
1313
changed_when: false
1414

@@ -20,4 +20,4 @@
2020
state: touch
2121
access_time: preserve
2222
modification_time: preserve
23-
when: selinux_state.stdout | lower != var_selinux_state
23+
when: current_selinux_state.stdout | lower != var_selinux_state

0 commit comments

Comments
 (0)