issue #14 : test ignore_modules cfg settings

This commit is contained in:
Klaus Zerwes 2023-01-08 00:48:33 +01:00 committed by Klaus Zerwes
parent b5735be5f7
commit d9a3333255
4 changed files with 20 additions and 1 deletions

View File

@ -63,6 +63,11 @@
commands: "{{ dellos_general_command | default([]) }}"
when: ansible_network_os == "dellemc.os6.os6"
# this will be ignored due to cfg
- name: general command os10_config
os10_config:
commands: "{{ dellos_general_command | default([]) }}"
# unnamed task
- file:
path: /etc/apt/sources.list.d/pve-enterprise.list

9
examplecfg.yml Normal file
View File

@ -0,0 +1,9 @@
---
ignore_modules:
- os10_config
# - os9_config
# - os6_config
exclude_paths:
- .github/

View File

@ -65,6 +65,11 @@
commands: "{{ dellos_general_command | default([]) }}"
when: ansible_network_os == "dellemc.os6.os6"
# this will be ignored due to cfg
- name: general command os10_config
os10_config:
commands: "{{ dellos_general_command | default([]) }}"
# unnamed task
- ansible.builtin.file:
path: /etc/apt/sources.list.d/pve-enterprise.list

View File

@ -6,7 +6,7 @@ cd $(dirname $0)
cp example.yml example.yml.orig
./fqcn-fixer.py -f example.yml -w -x
./fqcn-fixer.py -c examplecfg.yml -f example.yml -w -x
cmp example.yml exampleconverted.yml
E=$?