Added anyenv-update
This commit is contained in:
parent
46fdaf14f5
commit
9b24b192e5
2 changed files with 12 additions and 2 deletions
|
@ -4,7 +4,7 @@ set -ex
|
||||||
PATH="$PATH:$HOME/.local/bin"
|
PATH="$PATH:$HOME/.local/bin"
|
||||||
|
|
||||||
if [[ $(command -v ansible) ]]; then
|
if [[ $(command -v ansible) ]]; then
|
||||||
printf "ansible already installed"
|
printf "ansible already installed\n"
|
||||||
elif [[ $(uname) == "Linux" ]]; then
|
elif [[ $(uname) == "Linux" ]]; then
|
||||||
if [[ $(command -v pacman) ]]; then
|
if [[ $(command -v pacman) ]]; then
|
||||||
sudo pacman -Sy --noconfirm ansible
|
sudo pacman -Sy --noconfirm ansible
|
||||||
|
@ -21,4 +21,4 @@ elif [[ $(uname) == "Darwin" ]]; then
|
||||||
/usr/local/bin/brew install ansible
|
/usr/local/bin/brew install ansible
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ansible-playbook -i inventory main.yml
|
ansible-playbook --ask-become-pass -i inventory main.yml
|
||||||
|
|
|
@ -43,3 +43,13 @@
|
||||||
shell: ~/.anyenv/bin/anyenv install exenv
|
shell: ~/.anyenv/bin/anyenv install exenv
|
||||||
args:
|
args:
|
||||||
creates: ~/.anyenv/envs/exenv
|
creates: ~/.anyenv/envs/exenv
|
||||||
|
|
||||||
|
- name: anyenv plugin dir
|
||||||
|
shell: mkdir ~/.anyenv/plugins
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/plugins
|
||||||
|
|
||||||
|
- name: anyenv plugin
|
||||||
|
shell: git clone https://github.com/znz/anyenv-update.git ~/.anyenv/plugins/anyenv-update
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/plugins/anyenv-update
|
||||||
|
|
Loading…
Add table
Reference in a new issue