This repository is merely for personal use. It's not private since someone might find it useful and, even for me, it saves the pain of login while in a strangers computer.
The purpose of this reposity is when I start a freshly Linux image, I can configure it with all appropriate applications and UI. If you want to use it, do it at your own risk.
You may change your user for your specific needs.
-
Install Python3
sudo apt-get install python3 python3-pip git -y
-
Install Ansible
python3 -m pip install --user ansible-core
-
Navigate to a place of your choice
cd $HOME/Documents/guergeiro
-
Clone the my Infrastructure as Code repository
git clone https://github.com/Guergeiro/iac.git
-
Install playbook dependencies
ansible-galaxy install -r requirements.yml --force
-
Run the playbook you want
ansible-playbook linux-desktop.yml --ask-vault-password --ask-become-pass \ --vault-id @prompt
ansible-playbook linux-wsl.yml --ask-vault-password --ask-become-pass \ --vault-id @prompt
ansible-playbook lisbon.yml --ask-vault-password --ask-become-pass \ --vault-id @prompt
ansible-playbook viseu.yml --ask-vault-password --ask-become-pass \ --vault-id @prompt
ansible-playbook coolify.yml --ask-vault-password --ask-become-pass \ --vault-id @prompt
More info here.
-
Create encrypted files
ansible-vault create secret.yml
-
Edit encrypted files
ansible-vault edit secret.yml
-
Encrypt existing files
ansible-vault encrypt file1.yml file2.yml file3.yml
-
Decrypt existing file
ansible-vault decrypt file1.yml
-
Change password of encrypted file
ansible-vault rekey encrypted_file.yml
-
Encrypt string
ansible-vault encrypt_string <string>
-
Encrypt string
cat file_with_string_no_tabs | ansible-vault decrypt
Created by Breno Salles.
This repository is licensed under GPL-3.0.