From 31d34511535530cd5a3b9e9b5b6cecaa17283996 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Tue, 21 Jul 2020 10:10:57 +0530 Subject: [PATCH] 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 --- .../playbooks/cli-update-deployment-plan.yaml | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/tripleo_ansible/playbooks/cli-update-deployment-plan.yaml b/tripleo_ansible/playbooks/cli-update-deployment-plan.yaml index 85104ccf7..c894de17f 100644 --- a/tripleo_ansible/playbooks/cli-update-deployment-plan.yaml +++ b/tripleo_ansible/playbooks/cli-update-deployment-plan.yaml @@ -22,45 +22,11 @@ any_errors_fatal: true vars: container: overcloud - source_url: null generate_passwords: true reset_passwords: false - validate_stack: true hide_sensitive_logs: true - handlers: - - name: Cleanup temp directory - file: - path: "{{ temp_dir.path }}" - state: absent - when: temp_dir is defined - 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 tripleo_passwords_rotate: container: "{{ container }}"