check for stats
This commit is contained in:
parent
7056a44500
commit
627afbd416
1 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,7 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
puppet_agent_cmd: "{{ puppet_which.stdout }}"
|
puppet_agent_cmd: "{{ puppet_which.stdout }}"
|
||||||
when:
|
when:
|
||||||
|
- 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
|
||||||
|
@ -70,10 +71,11 @@
|
||||||
when:
|
when:
|
||||||
- not puppet_agent_cmd
|
- not puppet_agent_cmd
|
||||||
|
|
||||||
- name: Set puppet agent command (from which)
|
- name: Set puppet agent command (from whereis)
|
||||||
set_fact:
|
set_fact:
|
||||||
puppet_agent_cmd: "{{ puppet_whereis.stdout }}"
|
puppet_agent_cmd: "{{ puppet_whereis.stdout }}"
|
||||||
when:
|
when:
|
||||||
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue