I’m having this error message when wanting to re-provision the remote server, and don’t really understand what it means. The server is indeed Ubuntu 18.04. So what could cause the condition to fail ?
TASK [python_interpreter : Set ansible_python_interpreter for Ubuntu 18.04 Bionic] ***********************************************************
task path: /Users/me/GITHUB/projects/new.domain.org/trellis/roles/python_interpreter/tasks/main.yml:6
System info:
Ansible 2.8.11; Darwin
Trellis Head
---------------------------------------------------
The conditional check 'ubuntu_release.stdout | trim == 'bionic'' failed. The
error was: error while evaluating conditional (ubuntu_release.stdout | trim
== 'bionic'): 'dict object' has no attribute 'stdout'
The error appears to be in '/Users/me/GITHUB/
projects/new.domain.org/trellis/roles/python_interpreter/tasks/main.yml':
line 6, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
changed_when: false
- name: Set ansible_python_interpreter for Ubuntu 18.04 Bionic
^ here
Ansible version:
ansible 2.8.11
config file = /Users/me/GITHUB/projects/new.domain.org/trellis/ansible.cfg
configured module search path = ['/Users/me/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/me/.pyenv/versions/3.7.7/lib/python3.7/site-packages/ansible
executable location = /Users/me/.pyenv/versions/3.7.7/bin/ansible
python version = 3.7.7 (default, May 21 2020, 13:10:15) [Clang 11.0.0 (clang-1100.0.33.8)]