From 77475705a59c9c347e8face58cf17b051f84f63e Mon Sep 17 00:00:00 2001 From: Nikolaos Boutalas Date: Fri, 11 Aug 2023 14:38:10 +0300 Subject: Configure ansible to ask for passwords by default --- README.md | 8 ++++---- ansible.cfg | 4 ++++ setup.sh | 3 --- 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 ansible.cfg delete mode 100755 setup.sh diff --git a/README.md b/README.md index bca2782..5b939bc 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ In order to test this, you can use *Docker* and build a simple Linux container ```bash - git clone git@github.com:nikolaosboutalas/init.git - cd init + $ git clone git@github.com:nikolaosboutalas/init.git + $ cd init # Build a docker container with the specified distribution - docker build . -t ansible -f Dockerfile. && docker run --rm -it ansible + $ docker build . -t ansible -f Dockerfile. && docker run --rm -it ansible # Inside the new running container - ./setup.sh + $ ansible-playbook local.yml ``` diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..fdc93a4 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,4 @@ +[defaults] +ask_vault_pass = True +[privilege_escalation] +become_ask_pass = True diff --git a/setup.sh b/setup.sh deleted file mode 100755 index f5e94a3..0000000 --- a/setup.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -ansible-playbook local.yml --ask-become-pass --ask-vault-pass -- cgit v1.2.3