Ignore Azure templating errors

This commit is contained in:
AlanCoding 2019-07-12 08:01:53 -04:00
parent 23100094dc
commit 612205d56d
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B
2 changed files with 3 additions and 0 deletions

View File

@ -1991,6 +1991,8 @@ class azure_rm(PluginFileInjector):
source_vars = inventory_update.source_vars_dict
ret['fail_on_template_errors'] = False
group_by_hostvar = {
'location': {'prefix': '', 'separator': '', 'key': 'location'},
'tag': {'prefix': '', 'separator': '', 'key': 'tags.keys() | list if tags else []'},

View File

@ -4,6 +4,7 @@ default_host_filters: []
exclude_host_filters:
- resource_group not in ['foo_resources', 'bar_resources']
- location not in ['southcentralus', 'westus']
fail_on_template_errors: false
hostvar_expressions:
ansible_host: private_ipv4_addresses[0]
computer_name: name