Scott Baker | e0a8089 | 2016-11-23 12:07:07 -0800 | [diff] [blame] | 1 | --- |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 2 | # xos-config/tasks/main.yml |
Scott Baker | e0a8089 | 2016-11-23 12:07:07 -0800 | [diff] [blame] | 3 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 4 | - name: Bootstrap XOS database - create site, deployment, admin user |
| 5 | command: "python /opt/xos/tosca/run.py none /opt/cord_profile/{{ item }}" |
| 6 | with_items: |
| 7 | - "fixtures.yaml" |
| 8 | - "deployment.yaml" |
| 9 | tags: |
| 10 | - skip_ansible_lint # TOSCA loading should be idempotent |
| 11 | |
Zack Williams | 3eca647 | 2017-06-22 18:18:38 -0700 | [diff] [blame] | 12 | - name: Configure XOS with OpenStack config |
| 13 | when: use_openstack |
| 14 | command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}" |
| 15 | with_items: |
| 16 | - openstack.yaml |
| 17 | tags: |
| 18 | - skip_ansible_lint # TOSCA loading should be idempotent |
| 19 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 20 | - name: Configure XOS with profile specific TOSCA |
| 21 | command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}" |
| 22 | with_items: "{{ xos_tosca_config_templates }}" |
| 23 | tags: |
| 24 | - skip_ansible_lint # TOSCA loading should be idempotent |
Scott Baker | e0a8089 | 2016-11-23 12:07:07 -0800 | [diff] [blame] | 25 | |