Skip to content
Snippets Groups Projects
Commit 4ad25af3 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

conditionally including loginnodes to master playbook. try 4

Former-commit-id: 1568248c
parent fda69d9b
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,12 @@
stat:
path: plays/loginnodes.yml
register: loginnodes_play
# delegate_to: localhost #maybe this works on facts only
# delegate_facts: yes #maybe this works on facts only
- debug:
var: loginnodes_play
- import_playbook: plays/loginnodes.yml
when: loginnodes_play.stat.exists == True
- name: Include task list in play only if the condition is true
include: plays/loginnodes.yml
static: no
when: loginnodes_play.stat.exists == True
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment