Remove unncessary tasks from cli-update-deployment-plan.yaml
We don't seem to have cli support for updating a deployment plan using templates from a remote repo ( was possibly supported by ui earlier) and this playbook is never called with source_url var. Also removes the unused validate_stack var. Change-Id: I45083021497761b835e340f6a8655f2fece89981
This commit is contained in:
parent
7ffb084b2a
commit
31d3451153
@ -22,45 +22,11 @@
|
|||||||
any_errors_fatal: true
|
any_errors_fatal: true
|
||||||
vars:
|
vars:
|
||||||
container: overcloud
|
container: overcloud
|
||||||
source_url: null
|
|
||||||
generate_passwords: true
|
generate_passwords: true
|
||||||
reset_passwords: false
|
reset_passwords: false
|
||||||
validate_stack: true
|
|
||||||
hide_sensitive_logs: true
|
hide_sensitive_logs: true
|
||||||
|
|
||||||
handlers:
|
|
||||||
- name: Cleanup temp directory
|
|
||||||
file:
|
|
||||||
path: "{{ temp_dir.path }}"
|
|
||||||
state: absent
|
|
||||||
when: temp_dir is defined
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Clone repo and upload templates
|
|
||||||
block:
|
|
||||||
- name: Create temp directory
|
|
||||||
tempfile:
|
|
||||||
state: directory
|
|
||||||
suffix: "{{ '_' + container + '_import' }}"
|
|
||||||
register: temp_dir
|
|
||||||
notify:
|
|
||||||
- "Cleanup temp directory"
|
|
||||||
when: source_url is not none
|
|
||||||
|
|
||||||
- name: Git clone remote url
|
|
||||||
git:
|
|
||||||
repo: "{{ source_url }}"
|
|
||||||
dest: "{{ temp_dir }}"
|
|
||||||
when: source_url is not none
|
|
||||||
|
|
||||||
- name: Upload templates
|
|
||||||
tripleo_templates_upload:
|
|
||||||
container: "{{ container }}"
|
|
||||||
templates_dir: "{{ temp_dir.path }}"
|
|
||||||
when: source_url is not none
|
|
||||||
|
|
||||||
when: source_url is not none
|
|
||||||
|
|
||||||
- name: Generate passwords if does not exist and update plan
|
- name: Generate passwords if does not exist and update plan
|
||||||
tripleo_passwords_rotate:
|
tripleo_passwords_rotate:
|
||||||
container: "{{ container }}"
|
container: "{{ container }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user