geerlingguy / ansible-role-firewall

Ansible Role - iptables Firewall configuration.
https://galaxy.ansible.com/geerlingguy/firewall/
MIT License
524 stars 217 forks source link

Installed is no longer a valid argument for the ansible.builtin.package module #107

Closed justin-p closed 5 months ago

justin-p commented 6 months ago

Hi @geerlingguy,

The role currently fails to run. It seems that the package module no longer allows installed as a valid state argument.

TASK [geerlingguy.firewall : Ensure iptables is installed.] *******************************************************************************************************************
fatal: [honest-moray-sx98z]: FAILED! => {"changed": false, "msg": "value of state must be one of: absent, build-dep, fixed, latest, present, got: installed"}

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/package_module.html

I worked around this issue by changing it to present.

justin-p commented 6 months ago

nvm, just spotted that the latest tagged version is from 2016. Will use the main branch instead.

Would it be possible to create a new tag ?

geerlingguy commented 6 months ago

Latest tag is from 2024... https://github.com/geerlingguy/ansible-role-firewall/tags — are you not seeing that somewhere?

justin-p commented 6 months ago

Hia @geerlingguy, I've done goofed, all is fine on your end. It seems I got confused last night because of the release from 2016 that's on the main page. Should have checked better, sorry for the trouble :wink: screenie

geerlingguy commented 6 months ago

Ah no worries then!