mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Updating condition for a test
This commit is contained in:
parent
12d3db3414
commit
8788d4d103
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue