Dont show data when removing ingra
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
This commit is contained in:
parent
1e1301edb7
commit
82562efb80
|
@ -42,7 +42,7 @@
|
|||
when: server_location == "fsn1" or server_location == "nbg1" or server_location == "hel1"
|
||||
set_fact:
|
||||
network_zone: eu-central
|
||||
|
||||
|
||||
- name: Set network_zone to us-east
|
||||
when: server_location == "ash"
|
||||
set_fact:
|
||||
|
@ -107,26 +107,27 @@
|
|||
register: floating_ips_data
|
||||
|
||||
- name: Display important output data
|
||||
when: state == "present"
|
||||
block:
|
||||
- name: Display info about servers public IPs
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
- "{{ server_data }}"
|
||||
when: 'server_data'
|
||||
|
||||
- name: Generate new inventory
|
||||
ansible.builtin.template:
|
||||
src: templates/inventory.yaml.j2
|
||||
dest: "{{ output_dir }}/inventory.yaml"
|
||||
vars:
|
||||
ipv4_address: "{{ server_data.hcloud_server.ipv4_address }}"
|
||||
ipv4_entrypoint: "{{ floating_ips_data.hcloud_floating_ip.ip }}"
|
||||
cluster_name: "{{ env }}"
|
||||
volume_device_name: "{{ volumes_data.hcloud_volume.linux_device }}"
|
||||
|
||||
- name: Generate provider output
|
||||
ansible.builtin.template:
|
||||
src: templates/provider_outputs.yaml.j2
|
||||
dest: "{{ output_dir }}/provider_outputs.yaml"
|
||||
vars:
|
||||
ipv4_entrypoint: "{{ floating_ips_data.hcloud_floating_ip.ip }}"
|
||||
|
||||
- name: Generate new inventory
|
||||
ansible.builtin.template:
|
||||
src: templates/inventory.yaml.j2
|
||||
dest: "{{ output_dir }}/inventory.yaml"
|
||||
vars:
|
||||
ipv4_address: "{{ server_data.hcloud_server.ipv4_address }}"
|
||||
ipv4_entrypoint: "{{ floating_ips_data.hcloud_floating_ip.ip }}"
|
||||
cluster_name: "{{ env }}"
|
||||
volume_device_name: "{{ volumes_data.hcloud_volume.linux_device }}"
|
||||
|
||||
- name: Generate provider output
|
||||
ansible.builtin.template:
|
||||
src: templates/provider_outputs.yaml.j2
|
||||
dest: "{{ output_dir }}/provider_outputs.yaml"
|
||||
vars:
|
||||
ipv4_entrypoint: "{{ floating_ips_data.hcloud_floating_ip.ip }}"
|
||||
|
|
Loading…
Reference in New Issue