Updating condition for a test

This commit is contained in:
Mandar Kulkarni 2021-07-05 15:49:49 -07:00
parent 12d3db3414
commit 8788d4d103

View file

@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
- 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: