mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 07:35:31 +01:00
Add delegate_to to lookup tasks in integration tests for selinux
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
75abaa57f4
commit
fc92a4a044
1 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
|||
set_fact:
|
||||
selinux_config_original: "{{ lookup('file', '/etc/sysconfig/selinux').split('\n') }}"
|
||||
before_test_sestatus: "{{ ansible_selinux }}"
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
|
||||
- debug:
|
||||
var: "{{ item }}"
|
||||
|
|
@ -97,6 +98,7 @@
|
|||
- name: TEST 1 | Get modified config file
|
||||
set_fact:
|
||||
selinux_config_after: "{{ lookup('file', '/etc/sysconfig/selinux').split('\n') }}"
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
|
||||
- debug:
|
||||
var: selinux_config_after
|
||||
|
|
@ -211,6 +213,7 @@
|
|||
- name: TEST 2 | Get modified config file
|
||||
set_fact:
|
||||
selinux_config_after: "{{ lookup('file', '/etc/sysconfig/selinux').split('\n') }}"
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
|
||||
- debug:
|
||||
var: selinux_config_after
|
||||
|
|
|
|||
Loading…
Reference in a new issue