#ansible-playbook system-assessment.yml
TASK [Add host connection results to stored data] *********************************************************************************************************************************************
fatal: [deployTarget]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'host_keys'. 'dict object' has no attribute 'host_keys'\n\nThe error appears to be in '/sas/install/sas_viya_playbook/internal/validate.yml': line 80, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n when: host_connection_register is defined and host_connection_register.failed is defined and host_connection_register.failed\n - name: Add host connection results to stored data\n ^ here\n"}
Considering the deployment on one host.
Please help
What is the ansible version using to deploy viya
[root@n2 ~]# ansible --version
ansible [core 2.16.5]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.14 (main, Apr 3 2024, 20:06:34) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/local/bin/python3.10)
jinja version = 3.1.3
libyaml = True
[root@n2 ~]# python -version
bash: python: command not found...
^C
[root@n2 ~]# python3 --version
Python 3.10.14[root@n2 ~]# ansible --version
ansible [core 2.16.5]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.14 (main, Apr 3 2024, 20:06:34) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/local/bin/python3.10)
jinja version = 3.1.3
libyaml = True
[root@n2 ~]# python3 --version
Python 3.10.14
Hello, could you get also the output for:
python3.10 -m pip show ansible
Or similar. The versions might be different of what you would expect.
https://documentation.sas.com/doc/en/calcdc/3.5/dplyml0phy0lax/p1puupgtsay2r5n1h6k11n6lpl97.htm
[root@n2 ~]# python3 --version
Python 3.10.14
[root@n2 ~]# python3.10 -m pip show ansible
Name: ansible
Version: 9.4.0
Summary: Radically simple IT automation
Home-page: https://ansible.com/
Author: Ansible, Inc.
Author-email: info@ansible.com
License: GPL-3.0-or-later
Location: /usr/local/lib/python3.10/site-packages
Requires: ansible-core
Required-by:
I am personally not sure that your versions of ansible or Jinja are the right ones.
This is based on https://documentation.sas.com/doc/en/calcdc/3.5/dplyml0phy0lax/p1gclfomj2px4ln1094gh8tj52mj.htm#n0va...
Did you check those with SAS Technical Support?
Might be wise, to be sure.
These kind of errors normally come from invalid pre-requirements and/or incompatibilities between versions and Operating Systems.
My linux version is RHEL 8.6
try using ansible core - 2.12.x and deploy viya.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.