Comments (2)
I have the same issue.
TASK [ansible-role-router-configuration : Install sudo] **************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [ansible-role-router-configuration : Add S&S group] *************************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: FileNotFoundError: [Errno 2] No such file or directory: '/cf/conf/config.xml'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/fluit/.ansible/tmp/ansible-tmp-1661955006.8388512-2329418-249489363269926/AnsiballZ_pfsense_group.py\", line 107, in <module>\n _ansiballz_main()\n File \"/home/fluit/.ansible/tmp/ansible-tmp-1661955006.8388512-2329418-249489363269926/AnsiballZ_pfsense_group.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/fluit/.ansible/tmp/ansible-tmp-1661955006.8388512-2329418-249489363269926/AnsiballZ_pfsense_group.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.pfsensible.core.plugins.modules.pfsense_group', init_globals=dict(_module_fqn='ansible_collections.pfsensible.core.plugins.modules.pfsense_group', _modlib_path=modlib_path),\n File \"/usr/lib64/python3.10/runpy.py\", line 224, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.10/runpy.py\", line 96, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_pfsensible.core.pfsense_group_payload_c7_s479l/ansible_pfsensible.core.pfsense_group_payload.zip/ansible_collections/pfsensible/core/plugins/modules/pfsense_group.py\", line 226, in <module>\n File \"/tmp/ansible_pfsensible.core.pfsense_group_payload_c7_s479l/ansible_pfsensible.core.pfsense_group_payload.zip/ansible_collections/pfsensible/core/plugins/modules/pfsense_group.py\", line 220, in main\n File \"/tmp/ansible_pfsensible.core.pfsense_group_payload_c7_s479l/ansible_pfsensible.core.pfsense_group_payload.zip/ansible_collections/pfsensible/core/plugins/modules/pfsense_group.py\", line 99, in __init__\n File \"/tmp/ansible_pfsensible.core.pfsense_group_payload_c7_s479l/ansible_pfsensible.core.pfsense_group_payload.zip/ansible_collections/pfsensible/core/plugins/module_utils/module_base.py\", line 25, in __init__\n File \"/tmp/ansible_pfsensible.core.pfsense_group_payload_c7_s479l/ansible_pfsensible.core.pfsense_group_payload.zip/ansible_collections/pfsensible/core/plugins/module_utils/pfsense.py\", line 56, in __init__\n File \"/usr/lib64/python3.10/xml/etree/ElementTree.py\", line 1222, in parse\n tree.parse(source, parser)\n File \"/usr/lib64/python3.10/xml/etree/ElementTree.py\", line 569, in parse\n source = open(source, \"rb\")\nFileNotFoundError: [Errno 2] No such file or directory: '/cf/conf/config.xml'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
ls and file:
[22.05-RELEASE][[email protected]]/root: ls -lah /cf/conf/
total 54
drwxr-xr-x 3 root wheel 11B Aug 31 14:03 .
drwxr-xr-x 3 root wheel 3B Jun 22 18:53 ..
drwxr-xr-x 2 root wheel 13B Aug 31 11:26 backup
-rw-r--r-- 1 root wheel 15K Aug 31 11:54 config.xml
-rw-r--r-- 1 root wheel 14B Aug 31 11:20 copynotice_version
-rw-r--r-- 1 root wheel 5.2K Aug 31 11:10 copyright
-rw-r--r-- 1 root wheel 6B Jun 22 19:27 enableserial_force
-rw-r--r-- 1 root wheel 9.2K Aug 31 11:54 rules.debug.old
-rw-r--r-- 1 root wheel 0B Feb 7 2022 syslog_default_uncompressed
-rw-r--r-- 1 root wheel 38K Aug 31 11:26 upgrade_log.latest.txt
-rw-r--r-- 1 root wheel 70B Aug 31 14:03 upgrade_log.txt
[22.05-RELEASE][[email protected]]/root: file /cf/conf/config.xml
/cf/conf/config.xml: XML 1.0 document, ASCII text, with very long lines (2293)
[22.05-RELEASE][[email protected]]/root:
Identified files:
./plugins/module_utils/pfsense.py:60
from core.
@samuellsk What is control
? My guess it that it is not a pfSense box and as such does not have /cf/conf/config.xml
.
@stefanfluit-robin Looks like you are trying to run against localhost
rather than your pfSense box.
from core.
Related Issues (20)
- Module pfsense_dhcp_static - ARP Static Entry HOT 5
- deadcode round about haproxy HOT 2
- Reload filter rules HOT 1
- module_utils/pfsense.py:PFSenseModule.php JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 5
- Using 'any' interface in a floating rule HOT 4
- pfsense_interface sets IPv6 config type to None when `ipv6_type: slaac` is defined HOT 4
- pfsense_interface does not support IPv6 Configuration types: DHCP6, 6rd Tunnel, 6t4 Tunnel and Track Interface HOT 1
- nat_outbound - wrong dest address HOT 3
- pfsense_openvpn_server - Cannot find authentication server Local Database HOT 2
- WireGuard VPN
- Module option to whitelist IP HOT 1
- In dhcp module, allow interface netif to be given by its display name as well
- TLS key can't be generated for OpenVPN client/server HOT 4
- Module for managing Virtual IPs HOT 1
- Module for managing 1:1 NAT rules HOT 1
- members are not recognized for pfsense_interface_group module HOT 1
- pfsense_cert - Permission denied HOT 2
- pfsense_setup - Overwrites existing config due to defaults HOT 1
- pfsensible.core.pfsense_nat_outbound invert option bug. HOT 3
- pfsense_dhcp_static: No DHCP configuration found for netif HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.