From 34497c3874d69f5db22f5ffc3495cae1e6c3356d Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 25 Nov 2021 16:30:50 +0000 Subject: [PATCH] Move privilege escalation params into config (#17) --- README.md | 2 +- ansible.cfg | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a44f795..0c84f1c 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Edit the inventory hosts file (inventory/hosts) to your liking. Run the playbook: -`ansible-playbook -i inventory/hosts lemmy.yml --become -K` +`ansible-playbook -i inventory/hosts lemmy.yml` If the command above fails, you may need to comment out this line In the ansible.cfg file: diff --git a/ansible.cfg b/ansible.cfg index 87bdc5d..16c103d 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -4,3 +4,7 @@ inventory = inventory [ssh_connection] pipelining = True + +[privilege_escalation] +become = True +become_ask_pass: True