From 8788d4d103e7061e9b5df349cdfb343545ff757c Mon Sep 17 00:00:00 2001 From: Mandar Kulkarni Date: Mon, 5 Jul 2021 15:49:49 -0700 Subject: [PATCH] Updating condition for a test --- tests/integration/targets/at/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/targets/at/tasks/main.yml b/tests/integration/targets/at/tasks/main.yml index c4366c0..69c3efc 100644 --- a/tests/integration/targets/at/tasks/main.yml +++ b/tests/integration/targets/at/tasks/main.yml @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . + - set_fact: output_dir_test={{output_dir}}/at - name: make sure our testing sub-directory does not exist @@ -97,7 +98,7 @@ that: - at_add is changed - at_removal is changed - when: ansible_distribution not in ('Ubuntu', 'FreeBSD') or ansible_distribution == 'CentOS' and distributed_major_version > 6 + when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] != "6") or (ansible_facts['distribution'] not in ('Ubuntu','FreeBSD')) - name: Create an at command with chdir with valid value at: