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

ansible module update firewalld #91

Merged
merged 33 commits into from
Mar 14, 2021

Conversation

yarick
Copy link
Contributor

@yarick yarick commented Feb 26, 2021

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

yarick and others added 30 commits February 25, 2021 18:55
Signed-off-by: Aaron Lippold <[email protected]>
minimized the .ansible-lint
showing warnings as needed

Signed-off-by: Aaron Lippold <[email protected]>
fixed the posix collection issue in meta/main.yml
removed uneeded references to the collection

Signed-off-by: Aaron Lippold <[email protected]>
Signed-off-by: GitHub <[email protected]>
Signed-off-by: Aaron Lippold <[email protected]>
added env vars for colorized output

Signed-off-by: Aaron Lippold <[email protected]>
@aaronlippold
Copy link
Contributor

aaronlippold commented Mar 1, 2021

This PR address a variety of issues - in truth PR creep - which started with the ansible 2.10.x transition to collections. On inspection, we also noticed that Travis builds were having linting issues, updates to ansible-lint were causing semi-random failures. We migrated the build process over to GitHub Actions since it's free now and it was easier to get molecule stable there. The separateAnsible Lint' workflow could be removed as I have it stable in the molecule process. Lastly, we migrated the Playbook to point generally to the new POSIX collection in the meta area and updated the meta main file to follow the new Galaxy standards in the galaxy docs.

@aaronlippold
Copy link
Contributor

If you would like to see the GH Actions results - not sure why they are not triggering here - you can see the passing results here: https://github.com/yarick/Ubuntu1804-CIS/actions

@aaronlippold
Copy link
Contributor

todo #93

@@ -5,7 +5,7 @@ driver:
name: docker
lint: |
set -e
ansible-lint
ansible-lint -c .ansible-lint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one of these may be enough

provisioner:
name: ansible
lint:
name: ansible-lint
name: ansible-lint -c .ansible-lint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe redundant ...

@florianutz
Copy link
Owner

can't see anything related to firewalld

@florianutz florianutz closed this Mar 7, 2021
@aaronlippold
Copy link
Contributor

aaronlippold commented Mar 7, 2021 via email

@aaronlippold
Copy link
Contributor

aaronlippold commented Mar 7, 2021 via email

@aaronlippold
Copy link
Contributor

https://github.com/yarick/Ubuntu1804-CIS/blob/879dc5d125e99fc2e455223950344d3dff912b31/meta/main.yml#L24-L25 is the specific line that addresses the posix collection ( as of ansible 2.10.x ) firewalld module issue - as described here - https://groups.google.com/g/ansible-project/c/eXsoOKEd0Mk/m/XTgbnPWbCAAJ?pli=1

@aaronlippold
Copy link
Contributor

aaronlippold commented Mar 8, 2021

can't see anything related to firewalld

See the comments below. Does that clear up the question?

The firewalld module was moved into the postfix collection

@florianutz
Copy link
Owner

Hi Aaron, I will check it again. Why did you also remove my CI/CD?

@florianutz florianutz reopened this Mar 8, 2021
@florianutz
Copy link
Owner

@yarick and @aaronlippold sorry for my confusing. I understand the things now. Can you tell me why you have selected the versions ansible==2.7 ansible-lint==4.2.0 ?

@aaronlippold
Copy link
Contributor

These were the versions you documented in your supports on your read me

@aaronlippold
Copy link
Contributor

I also replaced the CICD given that a separate service is not required now that github actions are free for any public repos.

This seems like a more integrated solution, and it seems to be much simpler.

@florianutz
Copy link
Owner

thank you for your comments. I have no experience with the github actions but we should give it a try :) I will merge the change and be happy to get more contributions if there is something to improve

@florianutz florianutz merged commit 23d8523 into florianutz:master Mar 14, 2021
@aaronlippold
Copy link
Contributor

aaronlippold commented Mar 14, 2021 via email

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

Successfully merging this pull request may close these issues.

3 participants