Fix problems with Ansible playbook in vagrant

* `| failed` was (deprecated in Ansible 2.5)[https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.5.html#jinja-tests-used-as-filters] and removed in 2.9
* The `python` dpkg alternative doesn't seem to be available by default, but we're only interested in python3 anyway.
This commit is contained in:
Wolfgang Faust 2021-03-20 20:46:43 -07:00
parent 0f27c9995a
commit e872a83d6b
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@
file: path={{venv_root}}/websockify-ve3 state=directory owner={{user}}
#get python3 version for checks below
- shell: "python --version"
- shell: "python3 --version"
register: python_installed
#websockify's dependency numpy's latest version no longer supports 3.5

View File

@ -73,4 +73,4 @@
user: name={{user}} system=yes createhome=no home=/nonexistent
shell=/usr/sbin/nologin
become: true
when: id_user|failed
when: id_user is failed