File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ sudo apt-get install ansible
6262
63631 . Download role:
6464```
65- ansible-galaxy install viasite-ansible.zsh
65+ sudo ansible-galaxy install viasite-ansible.zsh
6666```
6767
68682 . Write playbook or use [ playbook.yml] ( playbook.yml ) :
@@ -76,7 +76,7 @@ ansible-galaxy install viasite-ansible.zsh
7676
77773 . Provision playbook:
7878```
79- ansible-playbook -i "localhost," -c local playbook.yml
79+ sudo ansible-playbook -i "localhost," -c local playbook.yml
8080```
8181
8282It will install zsh environment for ansible remote user. If you want to setup zsh for other user,
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ title () {
3+ local color=' \033[1;37m'
4+ local nc=' \033[0m'
5+ printf " \n${color} $1 ${nc} \n"
6+ }
7+
28title " Install Ansible"
3- sudo apt-get install software-properties-common
4- sudo apt-add-repository ppa:ansible/ansible
9+ sudo apt-get install software-properties-common -y
10+ sudo apt-add-repository ppa:ansible/ansible -y
11+ if [ -f /etc/apt/sources.list.d/ansible-ansible-jessie.list ]; then
12+ sudo sed -i ' s/jessie/trusty/g' /etc/apt/sources.list.d/ansible-ansible-jessie.list
13+ fi
514sudo apt-get update
6- sudo apt-get install ansible
15+ sudo apt-get install curl ansible -y
716
817title " Install viasite-ansible.zsh"
9- ansible-galaxy install viasite-ansible.zsh
18+ sudo ansible-galaxy install viasite-ansible.zsh --force
1019
1120title " Download playbook to /tmp/zsh.yml"
1221curl https://raw.githubusercontent.com/viasite-ansible/ansible-role-zsh/master/playbook.yml > /tmp/zsh.yml
1322
1423title " Provision playbook"
15- ansible-playbook -i " localhost," -c local /tmp/zsh.yml
16-
17- title () {
18- local color=' \033[1;37m'
19- local nc=' \033[0m'
20- printf " \n${color} $1 ${nc} \n"
21- echo -e " $1 "
22- }
24+ sudo ansible-playbook -i " localhost," -c local /tmp/zsh.yml
You can’t perform that action at this time.
0 commit comments