Coder Social home page Coder Social logo

Comments (2)

stefanfluit-robin avatar stefanfluit-robin commented on September 7, 2024

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.

opoplawski avatar opoplawski commented on September 7, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.