Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to load module firewalld #90

Closed
yarick opened this issue Feb 25, 2021 · 2 comments
Closed

Failure to load module firewalld #90

yarick opened this issue Feb 25, 2021 · 2 comments

Comments

@yarick
Copy link
Contributor

yarick commented Feb 25, 2021

Describe the bug
Ansible fails to locate the firewalld module/plugin due to the restructuring of the Ansible Modules by moving them into collections.
https://groups.google.com/g/ansible-project/c/eXsoOKEd0Mk/m/XTgbnPWbCAAJ?pli=1

To Reproduce
Steps to reproduce the behavior:

  1. run playbook locally using test-kitchen

Expected behavior
Expected to run

Software (please complete the following information):

  • Ansible Version: 2.10.x
  • Role/Repo Version master

Additional context
Error.


The error appears to be in '/tmp/kitchen/ubuntu-server-cis-hardening.yml': line 6, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
    - name: "SCORED | 3.5.4.3.4 | PATCH | Ensure default deny firewall policy | CUSTOM"
      ^ here

Stack with increased verbosity.

ansible-playbook 2.10.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.6.9 (default, Oct  8 2020, 12:12:24) [GCC 8.4.0]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /tmp/kitchen/hosts as it did not pass its verify_file() method
script declined parsing /tmp/kitchen/hosts as it did not pass its verify_file() method
auto declined parsing /tmp/kitchen/hosts as it did not pass its verify_file() method
Set default localhost to localhost
Parsed /tmp/kitchen/hosts inventory source with ini plugin
redirecting (type: modules) ansible.builtin.firewalld to community.general.firewalld
Loading collection community.general from /usr/local/lib/python3.6/dist-packages/ansible_collections/community/general
ERROR! couldn't resolve module/action 'firewalld'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/tmp/kitchen/ubuntu-server-cis-hardening.yml': line 6, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
    - name: "SCORED | 3.5.4.3.4 | PATCH | Ensure default deny firewall policy | CUSTOM"
      ^ here
yarick referenced this issue in yarick/Ubuntu1804-CIS Feb 25, 2021
@aaronlippold
Copy link
Contributor

Fixed #91

@florianutz
Copy link
Owner

Fixed by #91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants