Merge pull request #10 from zerwes/prefer-builtin

give precedence to ansible modules
This commit is contained in:
Klaus Zerwes 2022-09-19 21:05:48 +02:00 committed by GitHub
commit 000bdd38f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 4 deletions

View File

@ -96,3 +96,7 @@
notify: restart-xyz
when: of_local_json
- name: test user ... expect buildin
user:
name: test
password: '!'

View File

@ -99,3 +99,8 @@
notify: restart-xyz
when: of_local_json
- name: test user ... expect buildin
# possible ambiguous replacement: user : ansible.builtin.user | awx.awx.user | inspur.sm.user | sensu.sensu_go.user | theforeman.foreman.user
ansible.builtin.user:
name: test
password: '!'

View File

@ -222,7 +222,11 @@ if not fqcnmapfile or args.updatefqcnmapfile:
if nonfqcn not in fqcndict.keys():
fqcndict[nonfqcn] = []
if fqcn not in fqcndict[nonfqcn]:
fqcndict[nonfqcn].append(fqcn)
# this defines the precedence of the replacements made
if fqcn.startswith('ansible.'):
fqcndict[nonfqcn].insert(0, fqcn)
else:
fqcndict[nonfqcn].append(fqcn)
print('%s : %s -> %s' % (modname, nonfqcn, fqcn))
with open(args.fqcnmapfile, "w", encoding="utf-8") as fqcnmapfile:
fqcnmapfile.write(

View File

@ -2183,8 +2183,8 @@ cli_config:
cli_credential:
- cisco.dnac.cli_credential
cli_parse:
- ansible.netcommon.cli_parse
- ansible.utils.cli_parse
- ansible.netcommon.cli_parse
client_detail_info:
- cisco.dnac.client_detail_info
client_enrichment_details_info:
@ -7491,8 +7491,8 @@ grafana_team:
grafana_user:
- community.grafana.grafana_user
group:
- awx.awx.group
- ansible.builtin.group
- awx.awx.group
group_assignment:
- openstack.cloud.group_assignment
group_by:
@ -12687,11 +12687,11 @@ uri:
urpmi:
- community.general.urpmi
user:
- ansible.builtin.user
- awx.awx.user
- inspur.sm.user
- sensu.sensu_go.user
- theforeman.foreman.user
- ansible.builtin.user
user_enrichment_details_info:
- cisco.dnac.user_enrichment_details_info
user_group: