From 67250f8492c16d8334e4cec1d4bcbb93cb3a1901 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 1 Jul 2023 09:40:19 +0300 Subject: [PATCH] Add note about sudo passwords Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2774 --- examples/hosts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/hosts b/examples/hosts index fe3daac..46bc23b 100644 --- a/examples/hosts +++ b/examples/hosts @@ -1,5 +1,7 @@ # To connect using a non-root user (and elevate to root with sudo later), -# replace `ansible_ssh_user=root` with something like this: `ansible_ssh_user=username become=true become_user=root` +# replace `ansible_ssh_user=root` with something like this: `ansible_ssh_user=username become=true become_user=root`. +# If sudo requires a password, either add `become_password=PASSWORD_HERE` to the host line +# or tell Ansible to ask you for the password interactively by adding a `--ask-become-pass` (`-K`) flag to all `ansible-playbook` (or `just`) commands. # # For improved Ansible performance, SSH pipelining is enabled by default in `ansible.cfg`. # If this causes SSH connection troubles, disable it by adding `ansible_ssh_pipelining=False`