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

conditionally including loginnodes to master playbook. try 3

parent c349b4ac
No related branches found
No related tags found
1 merge request!297Cicd merge back
......@@ -7,16 +7,15 @@ variables:
stages:
- lint
#- delete_stack_manual
- extended
#- heat_test
- heat
- integration_test_downstream
- ansible_create_cluster_stage
- push_button_spawn_cluster
# - e2e
- tests
- clean # manually delete stack
- integration_test_downstream
- clean
trigger_pipeline_in_Clusterbuild:
stage: integration_test_downstream
......@@ -33,7 +32,7 @@ trigger_pipeline_in_monarch:
- ansible
script:
- echo ${CI_JOB_TOKEN}
- "curl --request POST --form token=${CI_JOB_TOKEN} --form ref=cicd https://gitlab.erc.monash.edu.au/api/v4/projects/385/trigger/pipeline" # ID is from clusterbuild
- "curl --request POST --form token=${CI_JOB_TOKEN} --form ref=cicd https://gitlab.erc.monash.edu.au/api/v4/projects/385/trigger/pipeline" # ID is from monarch
yamllint:
......
......@@ -6,14 +6,16 @@
- import_playbook: plays/mgmtnodes.yml
- import_playbook: plays/computenodes.yml
- name: check if loginnodes.yml file exists
- hosts: 127.0.0.1
gather_facts: false
hosts: 127.0.0.1
connection: local
stat:
path: plays/loginnodes.yml
register: loginnodes_play
- name: Include loginnodes.yml if present
import_playbook: plays/loginnodes.yml
tasks:
- name: running stat
stat:
path: plays/loginnodes.yml
register: loginnodes_play
- debug:
var: loginnodes_play
- import_playbook: plays/loginnodes.yml
when: loginnodes_play.stat.exists == True
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