blob: 05d2518ed807667e991b98f20b003c3676309126 [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001---
2# xos-test-restore-db/tasks/main.yml
3
4- name: Restore core initial data from fixture
5 command: python /opt/xos/manage.py --noobserver loaddata /opt/xos/core/fixtures/core_initial_data.json
6 tags:
7 - skip_ansible_lint # testing only
8
9
10- name: Start loading XOS config
11 command: "python /opt/xos/tosca/run.py none /opt/cord_profile/{{ item }}"
12 with_items:
13 - "fixtures.yaml"
14 - "deployment.yaml"
15 tags:
16 - skip_ansible_lint # TOSCA loading should be idempotent
17
18
19- name: Continue loading XOS config (as admin user)
20 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/{{ item }}"
21 with_items:
22 - "sample.yaml"
23 - "management-net.yaml"
24 - "services.yaml"
25 - "volt-devices.yaml"
26 tags:
27 - skip_ansible_lint # TOSCA loading should be idempotent
28