FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 107, in <module>\n File \"<stdin>\", line 99, in _ansiballz_main\n File \"<stdin>\", line 47, in invoke_module\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_puzzle.opnsense.system_access_users_payload_zrt8cd4y/ansible_puzzle.opnsense.system_access_users_payload.zip/ansible_collections/puzzle/opnsense/plugins/modules/system_access_users.py\", line 261, in <module>\n File \"/tmp/ansible_puzzle.opnsense.system_access_users_payload_zrt8cd4y/ansible_puzzle.opnsense.system_access_users_payload.zip/ansible_collections/puzzle/opnsense/plugins/modules/system_access_users.py\", line 227, in main\n File \"/tmp/ansible_puzzle.opnsense.system_access_users_payload_zrt8cd4y/ansible_puzzle.opnsense.system_access_users_payload.zip/ansible_collections/puzzle/opnsense/plugins/module_utils/config_utils.py\", line 167, in __exit__\nRuntimeError: Config has changed. Cannot exit without saving.\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Interestingly, the user is there in the UI. If I delete the user and run the playbook again, there is no issue:
Describe the bug
When I run the playbook with this role I get:
Interestingly, the user is there in the UI. If I delete the user and run the playbook again, there is no issue:
error:
Expected behavior I should be able to create or delete a user without having to run the playbook twice.
Desktop (please complete the following information):
Additional context Target: OPNsense 24.7.6