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

giving up on making the loginnode play conditional

Former-commit-id: 0e82150e
parent 4ad25af3
No related branches found
No related tags found
No related merge requests found
...@@ -5,21 +5,4 @@ ...@@ -5,21 +5,4 @@
- import_playbook: plays/nfssqlnodes.yml - import_playbook: plays/nfssqlnodes.yml
- import_playbook: plays/mgmtnodes.yml - import_playbook: plays/mgmtnodes.yml
- import_playbook: plays/computenodes.yml - import_playbook: plays/computenodes.yml
- import_playbook: plays/loginnodes.yml
- hosts: 127.0.0.1 \ No newline at end of file
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
../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