ansible-collections / hetzner.hcloud

A collection to manage resources on Hetzner Cloud
https://galaxy.ansible.com/ui/repo/published/hetzner/hcloud
GNU General Public License v3.0
104 stars 35 forks source link

hcloud_load_balancer_service reports change every time #415

Open betelgeuse opened 8 months ago

betelgeuse commented 8 months ago
SUMMARY

On every run the load balancer module reports changes

ISSUE TYPE
COMPONENT NAME

hcloud_load_balancer_service

ANSIBLE VERSION
ansible [core 2.16.0]
COLLECTION VERSION
Collection     Version
-------------- -------
hetzner.hcloud 2.3.0  
CONFIGURATION
ANSIBLE_PIPELINING(/Users/betelgeuse/.ansible.cfg) = True
CALLBACKS_ENABLED(/Users/betelgeuse/.ansible.cfg) = ['timer', 'profile_tasks', 'profile_roles']
CONFIG_FILE() = /Users/betelgeuse/.ansible.cfg
STEPS TO REPRODUCE
    - name: Load Balancer Service
      hetzner.hcloud.hcloud_load_balancer_service:
        api_token: "{{ api_token.passphrase }}"
        load_balancer: load-balancer
        protocol: https
        listen_port: 443
        http:
          certificates:
            - certificate
          redirect_http: true
EXPECTED RESULTS

Report no change.

ACTUAL RESULTS
changed: [localhost] => {
    "changed": true,
    "hcloud_load_balancer_service": {
        "destination_port": 80,
        "health_check": {
            "http": {
                "domain": "",
                "path": "/",
                "response": "",
                "status_codes": [
                    "2??",
                    "3??"
                ],
                "tls": false
            },
            "interval": 15,
            "port": 80,
            "protocol": "http",
            "retries": 3,
            "timeout": 10
        },
        "http": {
            "certificates": [
                "certificate"
            ],
            "cookie_lifetime": "HCLBSTICKY",
            "cookie_name": "HCLBSTICKY",
            "redirect_http": true,
            "sticky_sessions": false
        },
        "listen_port": 443,
        "load_balancer": "load-balancer",
        "protocol": "https",
        "proxyprotocol": false
    },
    "invocation": {
        "module_args": {
            "api_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "destination_port": null,
            "endpoint": "https://api.hetzner.cloud/v1",
            "health_check": null,
            "http": {
                "certificates": [
                    "certificate"
                ],
                "cookie_lifetime": null,
                "cookie_name": null,
                "redirect_http": true,
                "sticky_sessions": false
            },
            "listen_port": 443,
            "load_balancer": "load-balancer",
            "protocol": "https",
            "proxyprotocol": false,
            "state": "present"
        }
    }
}
github-actions[bot] commented 5 months ago

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

betelgeuse commented 5 months ago

Commenting to avoid marking as stale.