Code Monkey home page Code Monkey logo

private-ansible-example's Introduction

private-ansible-example

This is what I use for setting up my dev environment. You can use it too, if you want.

I use arch linux, if you don't use arch linux you will need to change roles/packages/tasks to use whatever thing your repo uses for poackage management instead of pacman.

This may not run straight out of box (i.e. if you have a fresh install without poetry you can't run poetry to install ansible, right?).

If something doesn't run for you and you can fix it, feel free to open a PR.

Intended usage (NB: this is designed to target localhost and I did not try to run it targeting a remote host)

  1. Fork
  2. Fill in stuff in vars and vault files
  3. Change meta info (like your name) in pyproject.toml
  4. Fill in item name in ask-vault-pass.sh if you use bitwarden cli for password
  5. Install stuff
poetry install
poetry run ansible-galaxy install -r requirements.yml
  1. Encrypt the vault
poetry run ansible-vault encrypt group_vars/all/vault.yml
  1. Run the playbook
poetry run ansible-playbook ./setup.yml

Changelog

2021-12-16 Initial version - extract example from what I personally use

private-ansible-example's People

Contributors

iharthi 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.