From 461d255e6bb27b9698f54ff124e5ed6c766fcacd Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Thu, 12 Oct 2023 16:10:30 +0200 Subject: [PATCH] add dep to tco.changelog --- meta/main.yml | 3 ++- tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 }}"