File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,6 @@ ansible-playbook -e parent=~/github/rm_example \
121
121
```
122
122
ansible-playbook -e parent=~/github/rm_example/roles/my_role \
123
123
-e structure=role \
124
- -e collection_org=cidrblock \
125
- -e collection_name=my_collection \
126
124
-e model=models/nxos/interfaces/nxos_interfaces.yml \
127
125
site.yml
128
126
```
Original file line number Diff line number Diff line change 24
24
- name : Ensure the 'collection_org' is set when 'structure' is set to collection
25
25
assert :
26
26
that : collection_org is defined
27
+ when : structure == 'collection'
27
28
28
29
- name : Ensure the 'collection_name' is set when 'structure' is set to collection
29
30
assert :
30
31
that : collection_name is defined
32
+ when : structure == 'collection'
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ parent_directory: "{{ parent }}{{ parent_directories[structure] }}"
19
19
# set the iport path based on the structure
20
20
import_paths :
21
21
role : ansible.module_utils
22
- collection : " ansible_collections.{{ collection_org }}.{{ collection_name }}.plugins.module_utils"
22
+ collection : " ansible_collections.{{ collection_org|default('') }}.{{ collection_name|default('') }}.plugins.module_utils"
23
23
24
24
import_path : " {{ import_paths[structure] }}"
25
25
You can’t perform that action at this time.
0 commit comments