Hi Buxtronix and Harro,
I’m receiving the following error when trying to parse some ouput using TextFSM in Ansible. I tried specifying the python interpreter path in the host file (all:vars) installing TextFSM, and I can’t solve this issue myself, any help is appreciated. Any idea what could be causing this issue? I’m running Ansible on RHEL.
Error:
“parse_cli_textfsm filter requires TextFSM library to be installed”
[all:vars]
ansible_python_interpreter="/opt/rh/rh-python36/root/usr/bin/python"
[root@server ansible]# ansible –version
wansible 2.9.7
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules',u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
[root@server ansible]# which python
/opt/rh/rh-python36/root/usr/bin/python
[root@server ansible]# pip3 install textfsm
Requirement already satisfied: textfsm in /root/.local/lib/python3.6/site-packages (1.1.0)
Requirement already satisfied: six in /root/.local/lib/python3.6/site-packages (from textfsm) (1.15.0)
Requirement already satisfied: future in /root/.local/lib/python3.6/site-packages (from textfsm) (0.18.2)
[root@server ansible]#
Thank you,
Delmiro Campelo (Del)
Network Engineer | Network Operations
Woodforest National Bank
Direct 832-375-2172
Cell 352-281-5214
25231 Grogans Mill Road #125
The Woodlands, Texas 77380

The information contained in this e-mail message is intended only for use of the individual or entity
named above. If the reader of this message is not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is strictly prohibited.