Skip to content

Commit

Permalink
fix: replace sudo with --become for ansible-playbook
Browse files Browse the repository at this point in the history
Closes #29
  • Loading branch information
popstas committed Jun 15, 2020
1 parent a5caf9f commit 5ba5d1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -86,7 +86,7 @@ ansible-galaxy install viasite-ansible.zsh --force

3. Provision playbook:
```
sudo ansible-playbook -i "localhost," -c local playbook.yml
ansible-playbook -i "localhost," -c local -K playbook.yml
```

If you want to provision role for root user on macOS, you should install packages manually:
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Expand Up @@ -19,10 +19,10 @@ 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 for root"
sudo ansible-playbook -i "localhost," -c local /tmp/zsh.yml
ansible-playbook -i "localhost," -c local -b /tmp/zsh.yml

title "Provision playbook for $(whoami)"
sudo ansible-playbook -i "localhost," -c local /tmp/zsh.yml --extra-vars="zsh_user=$(whoami)"
ansible-playbook -i "localhost," -c local -b /tmp/zsh.yml --extra-vars="zsh_user=$(whoami)"

title "Finished! Please, restart your shell."
echo ""

0 comments on commit 5ba5d1d

Please sign in to comment.