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:
|
apt:
|
||||||
name: "python-apt"
|
name: "python3-apt"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: clear sources.list
|
- name: clear sources.list
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@ provisioners:
|
||||||
user: root
|
user: root
|
||||||
ansible_env_vars:
|
ansible_env_vars:
|
||||||
- "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'"
|
- "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'"
|
||||||
|
- "ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3"
|
||||||
- inline:
|
- inline:
|
||||||
- rm /boot && mkdir /boot
|
- rm /boot && mkdir /boot
|
||||||
type: shell
|
type: shell
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue