Code Monkey home page Code Monkey logo

iac's Introduction

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

    cat file_with_string_no_tabs | ansible-vault decrypt

Author

Created by Breno Salles.

License

This repository is licensed under GPL-3.0.

iac's People

Contributors

guergeiro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.