change test

This commit is contained in:
Antonio J. Delgado 2022-10-24 13:38:22 +03:00
parent 1f71da5959
commit 829489b2de

View file

@ -45,7 +45,7 @@
set_fact: set_fact:
puppet_agent_cmd: "{{ puppet_which.stdout }}" puppet_agent_cmd: "{{ puppet_which.stdout }}"
when: when:
- puppet_which_stat is defined - "'stat' in puppet_which_stat"
- puppet_which_stat.stat.exists - puppet_which_stat.stat.exists
- not puppet_which_stat.stat.isdir - not puppet_which_stat.stat.isdir
- puppet_which_stat.stat.executable - puppet_which_stat.stat.executable
@ -75,7 +75,7 @@
set_fact: set_fact:
puppet_agent_cmd: "{{ puppet_whereis.stdout }}" puppet_agent_cmd: "{{ puppet_whereis.stdout }}"
when: when:
- puppet_whereis_stat is defined - "'stat' in puppet_whereis_stat"
- puppet_whereis_stat.stat.exists - puppet_whereis_stat.stat.exists
- not puppet_whereis_stat.stat.isdir - not puppet_whereis_stat.stat.isdir
- puppet_whereis_stat.stat.executable - puppet_whereis_stat.stat.executable