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

giving up on making the loginnode play conditional

parent 1568248c
No related branches found
No related tags found
1 merge request!297Cicd merge back
......@@ -5,21 +5,4 @@
- import_playbook: plays/nfssqlnodes.yml
- import_playbook: plays/mgmtnodes.yml
- import_playbook: plays/computenodes.yml
- hosts: 127.0.0.1
gather_facts: false
connection: local
tasks:
- name: running stat
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
- 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
- import_playbook: plays/loginnodes.yml
\ No newline at end of file
../tests/ManagementNodes/check.yml
\ 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