ygalblum / quadlet-demo

Apache License 2.0
33 stars 10 forks source link

use ansible service_facts to check for firewalld #22

Closed johanneskastl closed 1 year ago

johanneskastl commented 1 year ago

Worked in my tests with both firewalld uninstalled and running:

TASK [Populate service facts] **************************************************
ok: [quadlet-nginx-envoy-tls]

TASK [Open Ports in firewalld] *************************************************
changed: [quadlet-nginx-envoy-tls] => (item=8080/tcp)
changed: [quadlet-nginx-envoy-tls] => (item=8443/tcp)
changed: [quadlet-nginx-envoy-tls] => (item=9000/tcp)
TASK [Populate service facts] **************************************************
ok: [quadlet-nginx-envoy-tls]

TASK [Open Ports in firewalld] *************************************************
skipping: [quadlet-nginx-envoy-tls] => (item=8080/tcp) 
skipping: [quadlet-nginx-envoy-tls] => (item=8443/tcp) 
skipping: [quadlet-nginx-envoy-tls] => (item=9000/tcp) 
skipping: [quadlet-nginx-envoy-tls]