Skip to content

Commit

Permalink
Merge pull request #11 from avinetworks/AV-43772
Browse files Browse the repository at this point in the history
#AV-43772: SE deployment failing due to ansible error - Fixed
  • Loading branch information
Gaurav Rastogi authored Aug 17, 2018
2 parents 6b93048 + 2b76b85 commit a86d3ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ se_csp_user: ~
se_csp_password: ~
se_csp_qcow_image_file: se.qcow
se_csp_qcow_image_name: "{{ se_csp_qcow_image_file|basename }}"
se_csp_qcow_force_mode: false
se_csp_mgmt_ip: ~
se_csp_mgmt_mask: ~
se_csp_default_gw: ~
Expand Down
6 changes: 3 additions & 3 deletions tasks/qcow_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
- name: Avi SE | CSP | Image deploy | Download SE image from Controller
delegate_to: localhost
avi_api_fileservice:
force_mode: "{{se_master_force_mode}}"
force_mode: "{{se_csp_qcow_force_mode}}"
controller: "{{se_master_ctl_ip}}"
username: "{{se_master_ctl_username}}"
password: "{{se_master_ctl_password}}"
http_method: get
upload: false
path: seova
file_path: "{{ se_csp_qcow_image_file }}"
api_version: "{{se_master_ctl_version}}"
params:
file_format: qcow2
when: (not se_qcow_status.stat.exists) or (force_mode)
when: (not se_qcow_status.stat.exists) or (se_csp_qcow_force_mode)

- name: Avi SE | CSP | Image deploy | SCP qcow to csp device
shell: sshpass -p "{{ se_csp_password }}" scp -o StrictHostKeyChecking=no {{ se_csp_qcow_image_file }} {{ se_csp_user }}@{{ inventory_hostname }}:/osp/repository
Expand Down

0 comments on commit a86d3ee

Please sign in to comment.