diff options
author | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-08-11 14:38:10 +0300 |
---|---|---|
committer | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-12-31 12:46:06 +0200 |
commit | 77475705a59c9c347e8face58cf17b051f84f63e (patch) | |
tree | d1e63294760a0f2e1756bf9e3093d29708711fbc | |
parent | f20dd96b00dbe3dc5958d8e7dab010fd0f27e09d (diff) |
Configure ansible to ask for passwords by default
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | ansible.cfg | 4 | ||||
-rwxr-xr-x | setup.sh | 3 |
3 files changed, 8 insertions, 7 deletions
@@ -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.<distribution> && docker run --rm -it ansible + $ docker build . -t ansible -f Dockerfile.<distribution> && 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 |