Commit 299e64a5 authored by Carlos Torres's avatar Carlos Torres
Browse files

Adding "do-not-create-deployment"

parent a0df2493
......@@ -7,6 +7,7 @@ run_install_haproxy_exporter: False # True or False
run_install_grok_exporter: False # True or False
run_install_accelerator_client: True # True or False
run_create_deploys: True # True or False
create_deployment: True # True or False
domains:
- www.domain1.com
......
## Defaults for the create_cdn_deploy role
origin_cdn_host: example.com
create_deployment: True # True or False
- name: Create credentials
- name: Create credentials without deploy
shell: source /srv/accelerator_client/venv/bin/activate && cloud_credentials --install_dirs "{{ sc_pack_config_dir_list }}" --auth-token {{ api_access_token }} --domains "{{ domains }}" --deployment-tags "{{ deployment_tags }}" --do-not-create-deployment
register: shell_result
args:
executable: /bin/bash
when: "False == create_deployment"
- name: Create credentials with deploy
shell: source /srv/accelerator_client/venv/bin/activate && cloud_credentials --install_dirs "{{ sc_pack_config_dir_list }}" --auth-token {{ api_access_token }} --domains "{{ domains }}" --deployment-tags "{{ deployment_tags }}"
register: shell_result
args:
executable: /bin/bash
when: "True == create_deployment"
- debug: var=shell_result
- fail:
msg: "{{shell_result.stdout}}"
when: "'Error' in shell_result.stdout"
when: shell_result.stdout is defined and 'Error' in shell_result.stdout
## Defaults for the create_cdn_deploy role
origin_cdn_host: example.com
create_deployment: True # True or False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment