-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
1. Error: fqcn[action-core]: Use FQCN for builtin module actions (ansible.builtin.yum).
Problem
roles/sap_hypervisor_node_preconfigure/tasks/platform/redhat_rhel_kvm/allocate-hugepages-at-runtime.yml:2
Use `ansible.builtin.dnf` or `ansible.legacy.dnf` instead.Solution
Review and fix wrong module ansible.builtin.yum.
2. Error: syntax-check[missing-file]: Unable to retrieve file contents
Problem
syntax-check[missing-file]: Unable to retrieve file contents
roles/sap_hypervisor_node_preconfigure:1:1 Could not find or access '/tmp/platform/main.yml' on the Ansible Controller.Reason:
The variable sap_hypervisor_node_preconfigure_platform is undefined, causing ansible-lint to blindly search /tmp/ folder for files.
Solution
- Add default value, like
sap_hypervisor_node_preconfigure_platform: 'ENTER_STRING_VALUE_HERE' - Add Assert task into
main.ymlfile that will ensure that role will proceed only if `that: sap_hypervisor_node_preconfigure_platform in ['ibmpower_phyp', 'redhat_ocp_virt', 'redhat_rhel_kvm', 'vmware_vsphere']
3. Update .ansible-lint
Update linting configuration to remove exclusion for this role. These errors cannot be ignored forever.
exclude_paths:
- roles/sap_hypervisor_node_preconfigureMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working