Skip to content

Commit

Permalink
Use variable for domain name (ansible#28806)
Browse files Browse the repository at this point in the history
  • Loading branch information
haroldwongms authored and nitzmahone committed Aug 30, 2017
1 parent c77cc48 commit ef660f8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/integration/targets/azure_rm_dnszone/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
- name: Create random domain name
set_fact:
domain_name: "{{ resource_group | hash('md5') | truncate(16, True, '') + (65535 | random | string) }}"

- name: Create a DNS zone
azure_rm_dnszone:
resource_group: "{{ resource_group }}"
name: testing.com
name: "{{ domain_name }}.com"
state: present
register: results

Expand All @@ -11,7 +15,7 @@
- name: Update DNS zone with tags
azure_rm_dnszone:
resource_group: "{{ resource_group }}"
name: testing.com
name: "{{ domain_name }}.com"
state: present
tags:
test: modified
Expand All @@ -25,7 +29,7 @@
- name: Test check_mode
azure_rm_dnszone:
resource_group: "{{ resource_group }}"
name: testing.com
name: "{{ domain_name }}.com"
state: present
tags:
test: new_modified
Expand All @@ -41,5 +45,5 @@
- name: Delete DNS zone
azure_rm_dnszone:
resource_group: "{{ resource_group }}"
name: testing.com
name: "{{ domain_name }}.com"
state: absent

0 comments on commit ef660f8

Please sign in to comment.