Dont show data when removing ingra
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Nikolai Rodionov 2024-05-07 12:12:40 +02:00
parent 1e1301edb7
commit 82562efb80
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
1 changed files with 19 additions and 18 deletions

View File

@ -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 }}"