Replies: 1 comment
-
Users had issues as they did not expect to call another module to manually I personally only recommend enabling it for the 'mass-management' modules (#185) as they will only call it once all changes are done. You should be able to easily change the default for you environment like this: module_defaults:
group/ansibleguy.opnsense.all:
firewall: "{{ lookup('ansible.builtin.env', 'TEST_FIREWALL') }}"
api_credential_file: "{{ lookup('ansible.builtin.env', 'TEST_API_KEY') }}"
reload: false |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that there are two ways to 'reload' (I suspect this is like hitting the "apply" button in the UI) the state of an opnsense module/service. This seems to be an anti-pattern to me, from an Ansible perspective, so I'm curious why it's there? Also, why is it defaulted to true? It's more intuitive to me that it would default to 'false', and that the a playbook would use a handler to reload the service. Just curious about the design, here?
Beta Was this translation helpful? Give feedback.
All reactions