mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix azure_rm_rediscache test resource naming.
This commit is contained in:
parent
a864247bd5
commit
d95c716249
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
- name: Fix resource prefix
|
||||
set_fact:
|
||||
redis_name: "{{ (resource_group | replace('-','x'))[-8:] }}{{ 1000 | random }}redis"
|
||||
vnet_name: "{{ (resource_group | replace('-','x'))[-8:] }}{{ 1000 | random }}vnet"
|
||||
subnet_name: "{{ (resource_group | replace('-','x'))[-8:] }}{{ 1000 | random }}subnet"
|
||||
redis_name: "redis-{{ resource_group | hash('md5') | truncate(7, True, '') }}-{{ 1000 | random }}"
|
||||
vnet_name: "vnet-{{ resource_group | hash('md5') | truncate(7, True, '') }}-{{ 1000 | random }}"
|
||||
subnet_name: "subnet-{{ resource_group | hash('md5') | truncate(7, True, '') }}-{{ 1000 | random }}"
|
||||
run_once: yes
|
||||
|
||||
- name: Create a redis cache (Check Mode)
|
||||
|
|
Loading…
Reference in a new issue