Closed 78wesley closed 1 year ago
ansible 2.9 is way too old, does not include that: see https://docs.ansible.com/ansible/2.9/modules/hcloud_server_module.html
Please update to a more recent ansible version or install the collection manually.
As resmo already wrote, please update to a recent ansible version or update the collection as it is not supported in the version you use. If you have further questions feel free to reopen this issue or create a new one.
SUMMARY
When I create a new server and add delete_protection or rebuild_protection I get the error. fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (hcloud_server) module: delete_protection, rebuild_protection Supported parameters include: api_token, backups, datacenter, endpoint, force_upgrade, id, image, labels, location, name, rescue_mode, server_type, ssh_keys, state, upgrade_disk, user_data, volumes"}
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
STEPS TO REPRODUCE
EXPECTED RESULTS
It needs to enable protection for the options delete and rebuild. When the server is created.
ACTUAL RESULTS