Skip to content

Guergeiro/iac

Repository files navigation

iac

Table of Contents

About and Disclaimer

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.

Steps

You may change your user for your specific needs.

  1. Install Python3

    sudo apt-get install python3 python3-pip git -y
  2. Install Ansible

    python3 -m pip install --user ansible-core
  3. Navigate to a place of your choice

    cd $HOME/Documents/guergeiro
  4. Clone the my Infrastructure as Code repository

    git clone https://github.com/Guergeiro/iac.git
  5. Install playbook dependencies

    ansible-galaxy install -r requirements.yml --force
    pip install --no-cache-dir -r requirements.txt
  6. 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

Vault Commands

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>
  • Decrypt string

    cat file_with_string_no_tabs | ansible-vault decrypt

Author

Created by Breno Salles.

License

This repository is licensed under GPL-3.0.

About

IaC for my Linux/Unix machines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published