Revisiting a Ubuntu 18, bionic project from a couple of years ago. I needed to regenerate the Vagrant, dev box and provisioning is failing.
I am using trellis-cli, latest version, with fresh trellis init
.
# on the guest
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
I run:
$ ansible-playbook dev.yml -e env=development -vvv
Resulting in:
TASK [python_interpreter : Get Ubuntu release] ***********************************************************************************************************************************************************
task path: /Volumes/path/example.com/trellis/roles/python_interpreter/tasks/main.yml:2
[WARNING]: Failure using method (v2_runner_on_start) in callback plugin (<ansible.plugins.callback.output.CallbackModule object at 0x10deb5820>): 'show_per_host_start'
Callback Exception:
File "/Volumes/path/example.com/trellis/.trellis/virtualenv/lib/python3.8/site-packages/ansible/executor/task_queue_manager.py", line 381, in send_callback
method(*new_args, **kwargs)
File "/Volumes/path/example.com/trellis/.trellis/virtualenv/lib/python3.8/site-packages/ansible/plugins/callback/default.py", line 256, in v2_runner_on_start
if self.get_option('show_per_host_start'):
File "/Volumes/path/example.com/trellis/.trellis/virtualenv/lib/python3.8/site-packages/ansible/plugins/callback/__init__.py", line 91, in get_option
return self._plugin_options[k]
<192.168.50.5> ESTABLISH LOCAL CONNECTION FOR USER: mikekilmer
<192.168.50.5> EXEC sudo -H -S -n -u root /bin/sh -c 'echo BECOME-SUCCESS-htfhjqrjjhejifgcowdeevzuynzjzjpi ; lsb_release -cs'
System info:
Ansible 2.9.23; Darwin
Trellis 1.0.2: March 13th, 2019
---------------------------------------------------
non-zero return code
sudo: a password is required
fatal: [192.168.50.5]: FAILED! => {
"changed": false,
"rc": 1,
"stderr_lines": [
"sudo: a password is required"
],
"stdout": "",
"stdout_lines": []
}
And running with sudo returns
non-zero return code
/bin/sh: lsb_release: command not found
fatal: [192.168.50.5]: FAILED! => {
"changed": false,
"rc": 127,
"stderr_lines": [
"/bin/sh: lsb_release: command not found"
],
"stdout": "",
"stdout_lines": []
}
Similar error here, but I don’t believe the cause is the same.
I had initially been using Ansible v2.10
point something, and thought that might be the issue.
This trellis codebase hadn’t had a requirements.txt
file, so it’s pre trellis v1.1.0
.
Thanks for any suggestions.