From 248a4012252ed599d4300a0677aab3eebeaae805 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 19 Sep 2019 09:58:49 +0800 Subject: bootstrap: Install and use Python 3 --- bootstrap.sh | 4 ++-- host_vars/vultr | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 718f421..242f184 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -21,9 +21,9 @@ else echo "Generating SSH key ..." ssh-keygen -t ed25519 -C "ansible" -f "${SSHKEY}" echo "Generated SSH key: ${SSHKEY}" - echo "Bootstrap target by installing Python2.7 ..." + echo "Bootstrap target by installing Python ..." ansible vultr -u root \ - -m raw -a "pkg install -y python27" + -m raw -a "pkg update; pkg install -y python3" ansible-playbook \ --verbose --diff \ --ask-pass --ask-become-pass \ diff --git a/host_vars/vultr b/host_vars/vultr index a8c8daa..2eb56f7 100644 --- a/host_vars/vultr +++ b/host_vars/vultr @@ -2,7 +2,7 @@ --- ansible_ssh_host: vultr.liwt.net ansible_ssh_port: 8864 -ansible_python_interpreter: /usr/local/bin/python2.7 +ansible_python_interpreter: /usr/local/bin/python3 network: hostname: vultr -- cgit v1.2.2