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

Fix firewall playbook example to not break connection to ansible-1 #2140

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

larmbuster
Copy link
Contributor

@larmbuster larmbuster commented May 22, 2024

SUMMARY

The playbook example for setting up the firewall in section 1.5 would install and enable firewalld on ansible-1 but then not configure it. This resulted in a connection error when trying to access the controller UI and VS Code. To fix this, when conditionals were added to only run the firewall related tasks against hosts in the web group.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • exercises
ADDITIONAL INFORMATION

If the playbook with the code issue is run it breaks the web connection to the controller (ansible-1). SSH will continue to work allowing the connection to be restored by running sudo systemctl stop firewalld on ansible-1.

Fixes connection error to ansible-1 due to firewalld being installed and started without proper configuration. Added when conditional to run all the firewall tasks only on the web group.
Update example playbook output to reflect playbook changes
@larmbuster
Copy link
Contributor Author

Credit to @xmtrcv for identifying the fix

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.

None yet

1 participant