
Bump the version of ansible-lint and fix all warnings and failures found by ansible-lint. Also remove any python2 related code/tasks from install-packages.yaml Change-Id: If466227fb9872f1112b4577670c891bef5b31627
24 lines
552 B
YAML
24 lines
552 B
YAML
---
|
|
- name: Is python3 available
|
|
ansible.builtin.command: "python3 --version"
|
|
ignore_errors: true
|
|
register: python3_is_available
|
|
changed_when: false
|
|
|
|
- name: Install git
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: git
|
|
|
|
- name: Install virtualenv (py3)
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: python3-virtualenv
|
|
when: not python3_is_available.failed
|
|
|
|
- name: Check if pip is already installed
|
|
ansible.builtin.command: "pip --version"
|
|
ignore_errors: true
|
|
register: pip_is_installed
|
|
when: python3_is_available.failed
|