Closed Black616Angel closed 1 year ago
This is an old Ansible version and you're also using Python 2, which is old and dead.
See docs/ansible.md
and consider upgrading
it fails for me in the same stage with a more current ansible setup
TASK [galaxy/com.devture.ansible.role.systemd_service_manager : Ensure systemd services are stopped] *********************************************************************************************************** task path: /git/matrix-docker-ansible-deploy/roles/galaxy/com.devture.ansible.role.systemd_service_manager/tasks/restart_specified.yml:9 fatal: [some.server]: FAILED! => msg: '''dict object'' has no attribute ''priority,name'''
Ansible version:
ansible [core 2.12.10] config file = /git/matrix-docker-ansible-deploy/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] jinja version = 2.10.1 libyaml = True
Your Jinja version is old. If you search the issues, you'll find the same one from just a few days ago.
Describe the bug
The task "galaxy/com.devture.ansible.role.systemd_service_manager : Ensure systemd services are stopped" panics with the error message: (full text below)
fatal: [server.example.com]: FAILED! => msg: |- An unhandled exception occurred while templating '{{ devture_systemd_service_manager_services_list }}'.
To Reproduce My
vars.yml
file looks like this: (removed comments and empty lines)Expected behavior A lot goes well, but it aborts when executing the mentioned task.
Matrix Server:
Ansible:
where you run Ansible: different server with the same specs
what version of Ansible you're running (see
ansible --version
):Additional context Add any other context about the problem here.
Full error
``` An unhandled exception occurred while templating '{{ devture_systemd_service_manager_services_list }}'. Error was a