From 4fe1196c8ec886da793e4d1d7969d6ae9cc283a9 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Tue, 6 Dec 2022 09:13:08 +0100 Subject: [PATCH] Updated README.md for current vault Signed-off-by: TuDatTr --- README.md | 15 ++++++++++++--- group_vars/all/vars.yml | 1 + roles/common/tasks/aya01_fstab.yml | 0 roles/common/tasks/main.yml | 2 ++ 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 roles/common/tasks/aya01_fstab.yml diff --git a/README.md b/README.md index 02ed414..d408656 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,14 @@ ## Vault - Create vault with: `ansible-vault create secrets.yml` - Create entry in vault with: `ansible-vault edit secrets.yml` -- Add entry: `pi_tudattr_password: YOUR_USERS_PASSWORD` -- Add entry: `aya01_tudattr_password: YOUR_USERS_PASSWORD` +- Add following entries: + - `vault_pi_tudattr_password: ` + - `vault_aya01_tudattr_password: ` + - `vault_pihole_password: ` + - `vault_mysql_root_password: ` + - `vault_mysql_user_password: ` + - `vault_ddns_tudattrdev_password: ` + - `vault_ddns_borgland_password: ` ## Server - Install Debian (debian-11.5.0-amd64-netinst.iso) on remote system @@ -48,7 +54,6 @@ Host pi - enable ssh on pi - copy public key to pi - change user password of user on pi -- execute `ansible-galaxy install geerlingguy.docker` - execute `ansible-playbook -i production --ask-vault-pass --extra-vars '@secrets.yml' pi.yml` ## Mikrotik @@ -63,3 +68,7 @@ Host mikrotik IdentityFile /mnt/veracrypt1/mikrotik_rsa ``` +## Todo +- Role to setup backup +- Role to load customization/configurations from backup to servers +- aya01 fstab diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml index 429b875..767d06a 100644 --- a/group_vars/all/vars.yml +++ b/group_vars/all/vars.yml @@ -16,6 +16,7 @@ common_packages: - tmux - smartmontools - curl + - tree # # Docker diff --git a/roles/common/tasks/aya01_fstab.yml b/roles/common/tasks/aya01_fstab.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 1cea739..37271da 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,3 +1,5 @@ --- - include_tasks: time.yml - include_tasks: essential.yml +- include_task: aya01_fstab.yml + when: ansible_hostname == "aya01"