-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: zero-knowledge install.sh, docs
- Loading branch information
Showing
5 changed files
with
132 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
title "Install Ansible" | ||
sudo apt-get install software-properties-common | ||
sudo apt-add-repository ppa:ansible/ansible | ||
sudo apt-get update | ||
sudo apt-get install ansible | ||
|
||
title "Install viasite-ansible.zsh" | ||
ansible-galaxy install viasite-ansible.zsh | ||
|
||
title "Download playbook to /tmp/zsh.yml" | ||
curl https://raw.githubusercontent.com/viasite-ansible/ansible-role-zsh/master/playbook.yml > /tmp/zsh.yml | ||
|
||
title "Provision playbook" | ||
ansible-playbook -i "localhost," -c local /tmp/zsh.yml | ||
|
||
title() { | ||
local color='\033[1;37m' | ||
local nc='\033[0m' | ||
printf "\n${color}$1${nc}\n" | ||
echo -e "$1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- hosts: all | ||
vars: | ||
# your variables here | ||
zsh_autosuggestions_bind_key: "^U" | ||
roles: | ||
- viasite-ansible.zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters