Use python3 for ansible
This commit is contained in:
parent
8519cbbd05
commit
fdc0441013
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue