mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-13 08:05:19 +01:00
Compare commits
4 commits
93eee7c7c6
...
d76c3ab3f5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d76c3ab3f5 | ||
|
|
9171b7fcf1 | ||
|
|
2f095566c7 | ||
|
|
c8d3acb75f |
3 changed files with 7 additions and 4 deletions
3
changelogs/fragments/581_ci_selinux.yml
Normal file
3
changelogs/fragments/581_ci_selinux.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
trivial:
|
||||||
|
- selinux - conditions for selinux integration tests have been modified to be more accurate.
|
||||||
|
|
@ -449,8 +449,8 @@ def main():
|
||||||
except ValueError:
|
except ValueError:
|
||||||
module.fail_json(msg='Could not determine controller hostname for rsync to send to')
|
module.fail_json(msg='Could not determine controller hostname for rsync to send to')
|
||||||
else:
|
else:
|
||||||
source = module.params['src']
|
source = '"' + module.params['src'] + '"'
|
||||||
dest = module.params['dest']
|
dest = '"' + module.params['dest'] + '"'
|
||||||
dest_port = module.params['dest_port']
|
dest_port = module.params['dest_port']
|
||||||
delete = module.params['delete']
|
delete = module.params['delete']
|
||||||
private_key = module.params['private_key']
|
private_key = module.params['private_key']
|
||||||
|
|
|
||||||
|
|
@ -128,8 +128,8 @@
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- selinux_config_original | length == selinux_config_after | length
|
- selinux_config_original | length == selinux_config_after | length
|
||||||
- selinux_config_after[selinux_config_after.index('SELINUX=disabled')] is search("^SELINUX=\w+$")
|
- (selinux_config_after | select("search", "^SELINUX=disabled\s*$") | list | length) > 0
|
||||||
- selinux_config_after[selinux_config_after.index('SELINUXTYPE=targeted')] is search("^SELINUXTYPE=\w+$")
|
- (selinux_config_after | select("search", "^SELINUXTYPE=targeted\s*$") | list | length) > 0
|
||||||
|
|
||||||
- name: TEST 1 | Disable SELinux again, with kernel arguments update
|
- name: TEST 1 | Disable SELinux again, with kernel arguments update
|
||||||
ansible.posix.selinux:
|
ansible.posix.selinux:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue