diff options
author | Aaron LI <aly@aaronly.me> | 2019-09-19 09:58:49 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-09-19 09:58:49 +0800 |
commit | 248a4012252ed599d4300a0677aab3eebeaae805 (patch) | |
tree | 501435847d9d48a238d186d267dda7667c77ee94 | |
parent | b990076dd66a62598fb461fb523d801dbe87f47a (diff) | |
download | ansible-dfly-vps-248a4012252ed599d4300a0677aab3eebeaae805.tar.bz2 |
bootstrap: Install and use Python 3
-rwxr-xr-x | bootstrap.sh | 4 | ||||
-rw-r--r-- | 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 |