Use python3 for ansible

This commit is contained in:
jalr 2021-12-22 20:06:07 +00:00
parent 8519cbbd05
commit fdc0441013
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
---
- name: install python-apt
- name: install python3-apt
apt:
name: "python-apt"
name: "python3-apt"
state: present
- name: clear sources.list

View file

@ -67,6 +67,7 @@ provisioners:
user: root
ansible_env_vars:
- "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'"
- "ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3"
- inline:
- rm /boot && mkdir /boot
type: shell