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

Roemove ports #2

Open
flysen opened this issue Dec 13, 2017 · 1 comment
Open

Roemove ports #2

flysen opened this issue Dec 13, 2017 · 1 comment

Comments

@flysen
Copy link

flysen commented Dec 13, 2017

Hi and good work :-)
I've a question regarding this ansible role. Is it possible to remove firewalld configurations.
Eg:
I run the role and deploy some services:

firewalld_services:
  http:
    zone: public
    state: enabled
    permanant: true
  https:
    state: enabled

Next run I change it tofirewalld_services:

  http:
    zone: public
    state: enabled
    permanant: true

still the https are showed when run firewall-cmd --list-all

Cheers
Fredrik

@memiah-steve
Copy link
Contributor

Hi @flysen - The quick answer would be set enabled to false and leave the service in the list.

firewalld_services:
  http:
    zone: public
    state: enabled
    permanant: true
  https:
    state: disabled

The better option could be to adjust the gather a list of the service and disable any that are not listed. This would require a few updates to the role.

@memiah-steve memiah-steve modified the milestone: Test Sep 3, 2018
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

2 participants