diff --git a/meta/main.yml b/meta/main.yml index c572acc..86fa62c 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -47,6 +47,7 @@ galaxy_info: # NOTE: A tag is limited to a single word comprised of alphanumeric characters. # Maximum 20 tags per role. -dependencies: [] +dependencies: +- { role: tco.changelog, myrole_name: ansible_dns } # List your role dependencies here, one per line. Be sure to remove the '[]' above, # if you add dependencies to this list. diff --git a/tasks/main.yml b/tasks/main.yml index b99ec16..f3204dc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,7 +10,7 @@ ovh_api_application_secret: "{{ ovh_api_application_secret }}" ovh_api_consumer_key: "{{ ovh_api_consumer_key }}" zone: "{{ dns_zone }}" - record_name: "{{ item.record_name }}" + record_name: "{{ item.record_name | ansible.builtin.regex_replace( '.'+dns_zone, '' ) }}" record_value: "{{ item.record_value }}" record_type: "{{ item.record_type }}" state: "{{ state }}"