This commit is contained in:
parent
3f81897dfc
commit
dfdd2e0075
12
.drone.yml
12
.drone.yml
@ -12,10 +12,10 @@ steps:
|
|||||||
image: bv11-cr01.bessems.eu/library/packer-extended
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
# - |
|
- |
|
||||||
# mkdir ~/.ssh && \
|
mkdir ~/.ssh && \
|
||||||
# echo "$${private_key}" > ~/.ssh/id_rsa && \
|
echo "$${private_key}" > ~/.ssh/id_rsa && \
|
||||||
# chmod 0600 ~/.ssh/id_rsa
|
chmod 0600 ~/.ssh/id_rsa
|
||||||
- ansible-galaxy collection install -r requirements.yml
|
- ansible-galaxy collection install -r requirements.yml
|
||||||
- |
|
- |
|
||||||
ansible-playbook \
|
ansible-playbook \
|
||||||
@ -30,8 +30,8 @@ steps:
|
|||||||
from_secret: hv_password
|
from_secret: hv_password
|
||||||
root_password:
|
root_password:
|
||||||
from_secret: root_password
|
from_secret: root_password
|
||||||
# private_key:
|
private_key:
|
||||||
# from_secret: ssh_privatekey
|
from_secret: ssh_privatekey
|
||||||
volumes:
|
volumes:
|
||||||
- name: scratch
|
- name: scratch
|
||||||
path: /scratch
|
path: /scratch
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
nodes: "{{ nodes | default([]) + [ {'name': item.instance.hw_name, 'ip': item.item.item.ip | ansible.utils.ipaddr('address')} ] }}"
|
nodes: "{{ nodes | default([]) + [ {'name': item.instance.hw_name, 'ip': item.item.item.ip | ansible.utils.ipaddr('address')} ] }}"
|
||||||
with_items: "{{ job_poll | json_query('results[*]') }}"
|
with_items: "{{ job_poll | json_query('results[*]') }}"
|
||||||
|
# Purely to avoid large amount of spam; no sensitive data here.
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
||||||
- name: Register new VM's in inventory
|
- name: Register new VM's in inventory
|
||||||
|
Loading…
Reference in New Issue
Block a user