Remove debug and fix old tasks
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
b7dc5077bf
commit
b530b0a309
@ -7,7 +7,6 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
HCLOUD_TOKEN:
|
HCLOUD_TOKEN:
|
||||||
from_secret: HCLOUD_TOKEN
|
from_secret: HCLOUD_TOKEN
|
||||||
MOLECULE_DEBUG: true
|
|
||||||
commands:
|
commands:
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
- export INSTANCE_UUID=$(echo $$RANDOM)
|
- export INSTANCE_UUID=$(echo $$RANDOM)
|
||||||
|
@ -10,10 +10,8 @@
|
|||||||
ssh_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/ssh_key"
|
ssh_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/ssh_key"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create SSH key
|
- name: Create SSH key
|
||||||
user:
|
openssh_keypair:
|
||||||
name: "{{ lookup('env', 'USER') }}"
|
path: "{{ ssh_path }}"
|
||||||
ssh_key_file: "{{ ssh_path }}"
|
|
||||||
generate_ssh_key: true
|
|
||||||
force: true
|
force: true
|
||||||
register: generated_ssh_key
|
register: generated_ssh_key
|
||||||
|
|
||||||
@ -24,7 +22,7 @@
|
|||||||
- name: Register SSH key for test instance(s)
|
- name: Register SSH key for test instance(s)
|
||||||
hcloud_ssh_key:
|
hcloud_ssh_key:
|
||||||
name: "{{ ssh_key_name }}"
|
name: "{{ ssh_key_name }}"
|
||||||
public_key: "{{ generated_ssh_key.ssh_public_key }}"
|
public_key: "{{ generated_ssh_key.public_key }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create molecule instance(s)
|
- name: Create molecule instance(s)
|
||||||
@ -57,13 +55,15 @@
|
|||||||
|
|
||||||
- name: Populate instance config dict
|
- name: Populate instance config dict
|
||||||
set_fact:
|
set_fact:
|
||||||
instance_conf_dict: {
|
instance_conf_dict:
|
||||||
'instance': "{{ item.hcloud_server.name }}",
|
{
|
||||||
'ssh_key_name': "{{ ssh_key_name }}",
|
"instance": "{{ item.hcloud_server.name }}",
|
||||||
'address': "{{ item.hcloud_server.ipv4_address }}",
|
"ssh_key_name": "{{ ssh_key_name }}",
|
||||||
'user': "{{ ssh_user }}",
|
"address": "{{ item.hcloud_server.ipv4_address }}",
|
||||||
'port': "{{ ssh_port }}",
|
"user": "{{ ssh_user }}",
|
||||||
'identity_file': "{{ ssh_path }}", }
|
"port": "{{ ssh_port }}",
|
||||||
|
"identity_file": "{{ ssh_path }}",
|
||||||
|
}
|
||||||
with_items: "{{ hetzner_jobs.results }}"
|
with_items: "{{ hetzner_jobs.results }}"
|
||||||
register: instance_config_dict
|
register: instance_config_dict
|
||||||
when: server.changed | bool
|
when: server.changed | bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user