Patrick T. Rutledge III
2020-03-04 b473076b87787ed126600626c2019f82005a4061
commit | author | age
d154d4 1 - name: Step 000 Pre Infrastructure
GC 2   hosts: localhost
3   connection: local
4   become: false
5   tags:
6   - step001
7   - pre_infrastructure
923e3b 8   - osp_migration
d154d4 9   tasks:
923e3b 10     - name: Create migration host group
MA 11       add_host:
12         name: "{{ import_host }}"
13         group: "migration"
b47307 14         bastion: "{{ import_host }}"
923e3b 15         ansible_user: "root"
9cf18a 16         ansible_become: true
923e3b 17
MA 18 - name: Step 001 Migrating blueprints
19   hosts: migration
20   become: true
21   gather_facts: true
22   tags:
23   - step001
24   - pre_infrastructure
25   - osp_migration
26   tasks:
27     - name: Download images from project
9cf18a 28       become: true
923e3b 29       environment:
MA 30         OS_AUTH_URL: "{{ osp_auth_url }}"
31         OS_USERNAME: "{{ osp_auth_username }}"
32         OS_PASSWORD: "{{ osp_auth_password }}"
33         OS_PROJECT_NAME: "admin"
34         OS_PROJECT_DOMAIN_ID: "{{ osp_auth_project_domain }}"
35         OS_USER_DOMAIN_NAME: "{{ osp_auth_user_domain }}"
36         PATH: "/root/.local/bin:{{ ansible_env.PATH }}"
37         CEPH_CONF: "/etc/ceph/{{ ceph_cluster |default('red') }}.conf"
38       convert_blueprint:
39         ibm_endpoint: "{{ ibm_endpoint }}"
40         ibm_auth_endpoint: "{{ ibm_auth_endpoint }}"
41         ibm_api_key: "{{ ibm_api_key }}"
42         ibm_resource_id: "{{ ibm_resource_id }}"
43         bucket: "{{ ibm_bucket_name }}"
44         project: "{{ project }}"
45         output_dir: "{{ output_dir }}"
46         mode: "download"
47         glance_pool: "{{ ceph_cluster |default('red') }}-images"
48         overwrite: "{{ overwrite_image | default('false') }}"