mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Add register task for selinux_config_after_raw to manage selinux config
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
3887aacb76
commit
01fa2757b6
1 changed files with 4 additions and 0 deletions
|
|
@ -108,6 +108,10 @@
|
|||
src: /etc/sysconfig/selinux
|
||||
register: selinux_config_after_base64
|
||||
|
||||
- name: TEST 1 | Register modified config
|
||||
set_fact:
|
||||
selinux_config_after_raw: "{{ selinux_config_after_base64.content | b64decode }}"
|
||||
|
||||
- name: TEST 1 | Split by line and register modified config
|
||||
set_fact:
|
||||
selinux_config_after: "{{ selinux_config_after_raw.split('\n') }}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue