freiburg-dotfiles / dotfiles

MIT License
0 stars 4 forks source link

Sudo and ansible #11

Open wintered opened 5 years ago

wintered commented 5 years ago

E.g.

sudo ansible-playbook -i  dotfiles_installation/localhost_inventory.yml dotfiles_installation/install/install.yml --tags="mutt"

This installs mutt in root's home directory not in the user's root directory. Is there a way to prevent this?

MRocholl commented 4 years ago

Yes. There are several. Best one is to not execute via sudo but with the --ask-become-pass flag.