File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
tests/integration/targets Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ bugfixes :
3
+ - ansible.posix.cgroup_perf_recap - fixes json module load path (https://github.com/ansible-collections/ansible.posix/issues/630).
4
+ trivial :
5
+ - ansible.posix.seboolean - remove unnecessary condition from seboolean integration tests (https://github.com/ansible-collections/ansible.posix/issues/630).
6
+ - ansible.posix.selinux - optimize conditions for selinux integration tests (https://github.com/ansible-collections/ansible.posix/issues/630).
Original file line number Diff line number Diff line change 132
132
133
133
import csv
134
134
import datetime
135
+ import json
135
136
import os
136
137
import time
137
138
import threading
142
143
143
144
from ansible .module_utils ._text import to_bytes , to_text
144
145
from ansible .module_utils .six import with_metaclass
145
- from ansible .parsing .ajson import AnsibleJSONEncoder , json
146
+ from ansible .parsing .ajson import AnsibleJSONEncoder
146
147
from ansible .plugins .callback import CallbackBase
147
148
148
149
Original file line number Diff line number Diff line change 20
20
ansible.builtin.include_tasks : seboolean.yml
21
21
when :
22
22
- ansible_selinux is defined
23
- - ansible_selinux
24
23
- ansible_selinux.status == 'enabled'
Original file line number Diff line number Diff line change 19
19
- name : Debug message for when SELinux is disabled
20
20
ansible.builtin.debug :
21
21
msg : SELinux is disabled
22
- when : ansible_selinux is defined and not ansible_selinux
22
+ when : ansible_selinux is defined and ansible_selinux.status == 'disabled'
23
23
24
24
- name : Debug message for when SELinux is enabled and not disabled
25
25
ansible.builtin.debug :
26
26
msg : SELinux is {{ ansible_selinux.status }}
27
- when : ansible_selinux is defined and ansible_selinux
27
+ when : ansible_selinux is defined
28
28
29
29
- name : Include_tasks for when SELinux is enabled
30
30
ansible.builtin.include_tasks : selinux.yml
31
31
when :
32
32
- ansible_selinux is defined
33
- - ansible_selinux
34
33
- ansible_selinux.status == 'enabled'
35
34
36
35
- name : Include tasks for selogin when SELinux is enabled
37
36
ansible.builtin.include_tasks : selogin.yml
38
37
when :
39
38
- ansible_selinux is defined
40
- - ansible_selinux
41
39
- ansible_selinux.status == 'enabled'
You can’t perform that action at this time.
0 commit comments