Don't run kernel config check when the role is skipped
Closed this issue · 1 comments
I'm trying to apply a limited set of roles with ansible-playbook -i inventory.yml -l myservername --tags whatever main.yml -K
The selected tag whatever
is unrelated to infra_nftables.
However, the following tags are always ran:
- NFTables | Checking config
Lines 6 to 14 in 004b84a
- NFTables | Check | Checking kernel config
infra_nftables/tasks/check_debian_kernel_config.yml
Lines 17 to 23 in 004b84a
The last step is failing as nft_kernel_config.stdout_lines
is defined in NFTables | Check | Pulling kernel config
, which is not always ran
infra_nftables/tasks/check_debian_kernel_config.yml
Lines 3 to 15 in 004b84a
Can the dependency be fixed please ?
Thank you
Greetings @Yoda-BZH
I've removed the always
tags and replaced them with the role-specific ones.