-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ADD] DNS hoster INWX (#1) * [ADD] DNS provider 'INWX' to argument_specs.yml * [ADD] INWX sanity checks * [ADD] INWX create * [ADD] INWX cleanup * [FIX] typo in argument_specs.yml * [FIX] typo 'wait_for_txt' dns-inwx-create.yml Remove `always_ask_default_resolver: false` from module `community.dns.wait_for_txt` while 'Wait for DNS entries to propagate' * [FIX] INWX and docs (#2) * [FIX] multiple record values dns-inwx-create.yml this is necessary as long as inwx/ansible-collection#9 is not resolved. * Update general_role_parameters.rst * Update acme_certificate_role.rst * Update dns-inwx-cleanup.yml (#3) * I should update the general requirements * Create 19-add-inwx-dns-provider.yaml (#4) * [FIX] Sanity (Ⓐstable-2.10) / Extra Sanity `ERROR: docs/docsite/rst/general_role_parameters.rst:95:0: Bullet list ends without a blank line; unexpected unindent.` / `./docs/docsite/rst/general_role_parameters.rst:95:0: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.` I hope that is the needed fix. * Update docs/docsite/rst/general_role_parameters.rst Co-authored-by: Felix Fontein <[email protected]> * Update docs/docsite/rst/general_role_parameters.rst Co-authored-by: Felix Fontein <[email protected]> * Update docs/docsite/rst/requirements.rst Co-authored-by: Felix Fontein <[email protected]> * Update roles/acme_certificate/meta/argument_specs.yml Co-authored-by: Felix Fontein <[email protected]> * Update roles/acme_certificate/tasks/dns-inwx-create.yml Co-authored-by: Felix Fontein <[email protected]> * Update docs/docsite/rst/general_role_parameters.rst Co-authored-by: Felix Fontein <[email protected]> * Update docs/docsite/rst/general_role_parameters.rst Co-authored-by: Felix Fontein <[email protected]> * Update roles/acme_certificate/tasks/dns-inwx-create.yml Co-authored-by: Felix Fontein <[email protected]> * Update changelogs/fragments/19-add-inwx-dns-provider.yaml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
- Loading branch information
1 parent
856e080
commit 76a0493
Showing
8 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- "The role ``felixfontein.acme.acme_certificate`` can now handle the DNS provider INWX (https://github.com/felixfontein/ansible-acme/pull/19)." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
# Clean up DNS challenges for DNS provider INWX | ||
|
||
- name: Cleaning up challenge DNS entries for {{ ', '.join(acme_certificate_domains + acme_certificate_ips) }} via INWX | ||
inwx.collection.dns: | ||
state: absent | ||
domain: "{{ item.0.key | community.dns.get_registrable_domain }}" | ||
type: TXT | ||
record: "{{ item.0.key | community.dns.remove_registrable_domain }}" | ||
value: "{{ item.1 }}" | ||
username: "{{ acme_certificate_inwx_username | default(omit) }}" | ||
password: "{{ acme_certificate_inwx_password | default(omit) }}" | ||
delegate_to: localhost | ||
run_once: true | ||
loop_control: | ||
extended: yes | ||
loop: "{{ acme_certificate_INTERNAL_challenge.challenge_data_dns | dict2items | subelements('value') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
# Create DNS challenges for DNS provider INWX | ||
|
||
- name: Creating challenge DNS entries for {{ ', '.join(acme_certificate_domains + acme_certificate_ips) }} via INWX | ||
inwx.collection.dns: | ||
state: present | ||
domain: "{{ item.0.key | community.dns.get_registrable_domain }}" | ||
type: TXT | ||
record: "{{ item.0.key | community.dns.remove_registrable_domain }}" | ||
value: "{{ item.1 }}" | ||
solo: "{{ ansible_loop.first }}" | ||
ttl: 300 | ||
username: "{{ acme_certificate_inwx_username | default(omit) }}" | ||
password: "{{ acme_certificate_inwx_password | default(omit) }}" | ||
delegate_to: localhost | ||
run_once: true | ||
loop_control: | ||
extended: yes | ||
loop: "{{ acme_certificate_INTERNAL_challenge.challenge_data_dns | dict2items | subelements('value') }}" | ||
|
||
- name: Wait for DNS entries to propagate | ||
community.dns.wait_for_txt: | ||
records: >- | ||
{{ acme_certificate_INTERNAL_challenge.challenge_data_dns | dict2items(key_name='name', value_name='values') | list }} | ||
timeout: 600 | ||
delegate_to: localhost | ||
run_once: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
- name: DNS sanity checks | ||
ansible.builtin.assert: | ||
that: | ||
- acme_certificate_inwx_username is defined | ||
- acme_certificate_inwx_password is defined | ||
msg: "acme_certificate_inwx_username and acme_certificate_inwx_password must be specified for INWX DNS" | ||
run_once: true |