|
3 | 3 | tags: |
4 | 4 | - install-deps |
5 | 5 | ansible.builtin.import_tasks: |
6 | | - file: "{{role_path }}/tasks/install-deps/main.yml" |
| 6 | + file: "{{ role_path }}/tasks/install-deps/main.yml" |
7 | 7 |
|
8 | 8 | - name: Ensure a storage pool for guestfs exists |
9 | | - delegate_to: localhost |
10 | | - run_once: true |
11 | 9 | tags: |
12 | | - - bringup |
| 10 | + - pool |
13 | 11 | ansible.builtin.import_tasks: |
14 | | - file: "{{role_path }}/tasks/bringup/storage-pool-path.yml" |
| 12 | + file: "{{ role_path }}/tasks/bringup/storage-pool-path.yml" |
15 | 13 |
|
16 | 14 | - name: Ensure libvirt networking has started |
17 | | - delegate_to: localhost |
18 | | - run_once: true |
19 | 15 | tags: |
20 | | - - bringup |
| 16 | + - network |
21 | 17 | ansible.builtin.import_tasks: |
22 | | - file: "{{role_path }}/tasks/bringup/network.yml" |
| 18 | + file: "{{ role_path }}/tasks/bringup/network.yml" |
23 | 19 |
|
24 | 20 | - name: Set the pathname of storage pool directory |
25 | 21 | tags: |
| 22 | + - base_image |
26 | 23 | - bringup |
27 | 24 | ansible.builtin.set_fact: |
28 | 25 | storagedir: "{{ kdevops_storage_pool_path }}/guestfs" |
29 | 26 |
|
30 | 27 | - name: Set the pathname of the OS base image |
31 | 28 | tags: |
| 29 | + - base_image |
32 | 30 | - bringup |
33 | 31 | ansible.builtin.set_fact: |
34 | 32 | base_image: "{{ storagedir }}/base_images/{{ virtbuilder_os_version }}.raw" |
35 | 33 |
|
36 | | -- name: Ensure the base OS image exists |
37 | | - delegate_to: localhost |
38 | | - run_once: true |
| 34 | +- name: Ensure the required base OS image exists |
39 | 35 | tags: |
40 | | - - bringup |
| 36 | + - base_image |
41 | 37 | ansible.builtin.import_role: |
42 | 38 | name: base_image |
43 | 39 | vars: |
|
48 | 44 | tags: |
49 | 45 | - bringup |
50 | 46 | ansible.builtin.import_tasks: |
51 | | - file: "{{role_path }}/tasks/bringup/main.yml" |
| 47 | + file: "{{ role_path }}/tasks/bringup/main.yml" |
52 | 48 |
|
53 | 49 | - name: Set up target node console permissions |
54 | | - delegate_to: localhost |
55 | | - run_once: true |
56 | 50 | tags: |
57 | | - - bringup |
| 51 | + - console |
58 | 52 | ansible.builtin.import_tasks: |
59 | 53 | file: "{{ role_path }}/tasks/bringup/console-permissions.yml" |
60 | 54 | when: |
|
0 commit comments