From 4ea76459ca936eb0b7c6fb7b7119d36e0c519c1e Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Sun, 11 Jun 2023 17:59:48 +0200 Subject: [PATCH] Updated documentation to reflect current setup process --- README.org | 17 ++++++++++++++++- ansible.cfg | 2 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 02852db..6377a34 100644 --- a/README.org +++ b/README.org @@ -1,10 +1,25 @@ -* ccw.icu infra +* ccw.icu infrastructure Ansible Playbook I use to provision my Alpine Linux server * Requirements - ~ansible~ (~ansible-core~ is not enough, as I'm using ~community~ packages) * Running +As you might have noticed, from the ~.gitignore~, +this repo does not contain the ~secret.yml~ nor the ~hosts.yml~, +that is because they are meant to stay secret and you have to write your own. + +For more information on the ~hosts.yml~ file, +see the [[https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html][How to build your inventory]] ansible wiki. + +To setup the secret store, run the following command: +(and add the ~password:~ variable in there) +#+begin_src bash +ansible-vault create group_vars/all/secret.yaml +#+end_src + +After creating the password store, +you can run the playbook #+begin_src bash ansible-playbook run.yml -K --ask-vault-pass #+end_src diff --git a/ansible.cfg b/ansible.cfg index b1bd625..732687a 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,5 +1,7 @@ [defaults] inventory = hosts.yml +# disable cowsay - yes it looks beatiful, but is bloats the output +nocows = True [ssh_connections] # significantly speed up ssh -- 2.38.5