2022-01-05 23:59:13 +01:00
|
|
|
---
|
|
|
|
- name: Pick hard- and software
|
|
|
|
# not needed, can be pulled from hostvars
|
|
|
|
set_fact:
|
|
|
|
vcpus: "{{ nb_vm.json.results[0].vcpus | int }}"
|
|
|
|
os: "{{ nb_vm.json.results[0].platform.name }}"
|
|
|
|
|
|
|
|
# - name: Pick virtual hardware specifications
|
|
|
|
# # not needed, part of hostvars
|
|
|
|
# set_fact:
|
|
|
|
# memory: "{{ nb_vm.json.results[0].memory }}"
|
|
|
|
# disk: "{{ nb_vm.json.results[0].disk }}"
|
2022-02-13 01:37:39 +01:00
|
|
|
tags:
|
|
|
|
- init_dp
|
2022-02-13 16:56:12 +01:00
|
|
|
- init_ssh
|
2022-01-05 23:59:13 +01:00
|
|
|
|
|
|
|
- name: Pick metadata
|
|
|
|
set_fact:
|
|
|
|
id: "{{ nb_vm.json.results[0].id }}"
|
|
|
|
site: "{{ hostvars[inventory_hostname]['sites'][0] }}"
|
|
|
|
status: "{{ nb_vm.json.results[0].status.value }}"
|
|
|
|
|
|
|
|
# # not needed, part of hostvars
|
|
|
|
# #tags: "{{ nb_vm.json.results[0].tags[0].slug }}"
|
|
|
|
# #tags: "{{ nb_vm.json.results[0].tags | sum(start=[]) | map(attribute='slug') }}"
|
2022-02-13 01:37:39 +01:00
|
|
|
tags:
|
|
|
|
- init_dp
|
2022-02-13 16:56:12 +01:00
|
|
|
- init_ssh
|
2022-01-05 23:59:13 +01:00
|
|
|
|