Skip to content

[Bug] error with top_level variable after version update #192

@FelixMMS

Description

@FelixMMS

Description

after updating collection Version from 3.2.0 to 4.3.2 the variable subject_alt_name.top_level produces an error in the task for the azure acme_challenge_provider.

Reproduction steps

Run this task:

  tasks:
    - name: Create and upload Lets Encrypt certificate for <DOMAIN>
      ansible.builtin.include_role:
        name: telekom_mms.acme.acme
        public: true
      vars:
        acme_challenge_provider: azure
        acme_domain:
          email_address: "{{ service_email }}"
          certificate_name: <CERT_NAME>
          zone: "<ZONE>"
          subject_alt_name:
            top_level:
              - "<DOMAIN>"
              - "*.<DOMAIN>"

Current Behavior

TASK [telekom_mms.acme.acme : Handle challenge data] ***************************
fatal: [127.0.0.1]: FAILED! => 
  msg: 'Expected dns-01 challenges for the following domains not found: top_level // The API responded with dns-01 challenges for the following domains we did not expect: *<DOMAIN>,<DOMAIN>'

Expected Behavior

Create the certificate. The Handle challenge data Task wasnt there in the older version.

TASK [telekom_mms.acme.acme : Create a challenge using a account key file for wildcard-<DOMAIN>] ***
changed: [127.0.0.1]
TASK [telekom_mms.acme.acme : Do challenge with provider azure] ****************
included: /root/.ansible/collections/ansible_collections/telekom_mms/acme/roles/acme/tasks/challenge/dns-01/azure.yml for 127.0.0.1
TASK [telekom_mms.acme.acme : Add a new TXT record to the SAN top-level domains] ***
changed: [127.0.0.1] => (item=<DOMAIN>)
changed: [127.0.0.1] => (item=*.<DOMAIN>)

Additional information

The change is probably in this commit
8928cf8#diff-cc89a63fb2808a76662639f4c04c498ef1d007ccb232f16a6a92a3bb127085ea

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions