Add is defined
This commit is contained in:
parent
627afbd416
commit
1f71da5959
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@
|
|||
set_fact:
|
||||
puppet_agent_cmd: "{{ puppet_which.stdout }}"
|
||||
when:
|
||||
- puppet_which_stat
|
||||
- puppet_which_stat is defined
|
||||
- puppet_which_stat.stat.exists
|
||||
- not puppet_which_stat.stat.isdir
|
||||
- puppet_which_stat.stat.executable
|
||||
|
@ -75,7 +75,7 @@
|
|||
set_fact:
|
||||
puppet_agent_cmd: "{{ puppet_whereis.stdout }}"
|
||||
when:
|
||||
- puppet_whereis_stat
|
||||
- puppet_whereis_stat is defined
|
||||
- puppet_whereis_stat.stat.exists
|
||||
- not puppet_whereis_stat.stat.isdir
|
||||
- puppet_whereis_stat.stat.executable
|
||||
|
|
Loading…
Reference in a new issue