[CORD-1760]
Eliminate deprecated versions of OpenStack ansible modules
[CORD-1654]
Quote OpenStack passwords so all-numeric ones aren't interpreted as
integers by YAML parser
Change-Id: I729b146b7664d967ae79dbc814720559c39c2195
diff --git a/xos/synchronizer/steps/sync_controller_images.yaml b/xos/synchronizer/steps/sync_controller_images.yaml
index e55cec4..149eb81 100644
--- a/xos/synchronizer/steps/sync_controller_images.yaml
+++ b/xos/synchronizer/steps/sync_controller_images.yaml
@@ -18,12 +18,15 @@
- hosts: 127.0.0.1
connection: local
tasks:
- - glance_image:
- auth_url={{ endpoint }}
- login_username="{{ admin_user }}"
- login_tenant_name="admin"
- login_password="{{ admin_password }}"
- name="{{ name }}"
- file="{{ filepath }}"
- disk_format='raw'
- is_public=true
+
+ - os_image:
+ name: "{{ name }}"
+ filename: "{{ filepath }}"
+ disk_format: "raw"
+ is_public: yes
+ auth:
+ auth_url: "{{ endpoint }}"
+ username: "{{ admin_user }}"
+ password: "{{ admin_password }}"
+ project_name: "{{ admin_project }}"
+