1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

Fix Floating IP assignment is not idempotent (#32)

This commit is contained in:
ohdearaugustin 2020-10-05 11:09:00 +02:00 committed by GitHub
parent fe84174cb6
commit e59b91ca86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 5 deletions

View file

@ -213,6 +213,18 @@
- floatingIP is changed
- floatingIP.hcloud_floating_ip.server == "{{ main_server.hcloud_server.name }}"
- name: test assign Floating IP idempotency
hcloud_floating_ip:
name: "{{ hcloud_floating_ip_name }}"
description: "changed-description"
type: ipv4
server: "{{ main_server.hcloud_server.name }}"
register: floatingIP
- name: verify test unassign Floating IPidempotency
assert:
that:
- floatingIP is not changed
- name: test unassign Floating IP
hcloud_floating_ip:
name: "{{ hcloud_floating_ip_name }}"