tf-ansible-workflow

Terraform/Ansible Workflow for Libvirt
git clone https://git.in0rdr.ch/tf-ansible-workflow.git
Log | Files | Refs | Pull requests |Archive

commit b10d8f89744f2f03d64900135c3e1cff9e86e6cc
parent afa84d97bd7bb89db07205755e5d7ffb1b61399f
Author: Andreas Gruhler <andreas.gruhler@adfinis-sygroup.ch>
Date:   Sun, 15 Sep 2019 22:42:58 +0200

document ansible_user variable

Diffstat:
MReadme.md | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/Readme.md b/Readme.md @@ -83,6 +83,13 @@ ansible-playbook playbook.yml -i inventory -l local ansible-playbook playbook.yml -i inventory -l qemu ``` +If you choose an unprivileged `ansible_user` to reach the VMs, you may need to specfiy a privileged user to run some of the tasks. Specifically, restarting the network and modifying users requires more privileges. Further, you might not want to touch all hosts and limit the execution to a specific host: +``` +# set hostname, restart networking, modify users and keys as privileged user on "myhost" +ansible-playbook playbook.yml -i inventory -l myhost -e ansible_user=root +``` + + ## 5 Troubleshooting, Tips & Tricks ### 5.1 Recreate