mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2024-07-07 04:43:04 -05:00
Merge pull request #10 from zerwes/prefer-builtin
give precedence to ansible modules
This commit is contained in:
commit
000bdd38f9
|
@ -96,3 +96,7 @@
|
|||
notify: restart-xyz
|
||||
when: of_local_json
|
||||
|
||||
- name: test user ... expect buildin
|
||||
user:
|
||||
name: test
|
||||
password: '!'
|
||||
|
|
|
@ -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: '!'
|
||||
|
|
|
@ -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(
|
||||
|
|
6
fqcn.yml
6
fqcn.yml
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user