Git Product home page Git Product logo

ansible's Introduction

ansible

Notes

When you try and do ansible-pull with vault there are two ways to get it to work

  1. You have to put ANSIBLE_ASK_VAULT_PASS=True in front of the ansible-pull
  2. Add this to a ansible.cfg file:
[defaults]
ask_vault_pass = True

This is the command I currently use

ANSIBLE_ASK_VAULT_PASS=True ansible-pull -U https://github.com/thegreatestgiant/ansible.git

And when I want to use a specific playbook

ANSIBLE_ASK_VAULT_PASS=True ansible-pull -U https://github.com/thegreatestgiant/ansible.git home.yml

Best Install

Try doing one of these two. For some OS's one works and the other doesn't.

sudo apt install -y pipx git
pipx install ansible-core
sudo apt install -y python3-pip git
pip install ansible-core

An alternative is putting the IP address of your server in the inventory and letting the GitHub Action take care of everything

Contents of Vault files

Location(s)

  • group_vars/all.yml
  • roles/ansible_user/templates/vault.j2
  • roles/ssh/templates/*
  • roles/kavita/templates/rclone.j2
  • roles/services/templates/rclone.j2

Group_vars

name: ***
user:
  name: "{{ name }}" 
  password: "***"
  home: "/home/{{ name }}"

Vault.j2

This is your vault password

Templates

This is everything you would want to put in your .ssh directory

Rclone.j2

This is the contents of my rclone.conf file which you can generate by installing rclone sudo -v ; curl https://rclone.org/install.sh | sudo bash and running rclone config

RoadMap

  • finnish up ssh
  • Do sean_user
  • Link ssh to sean_user
  • Add all services to services (Go and NPM I think)
  • Look at the startup script for another role maybe
  • Tie it all together in local.yml
  • Add a github action automation

The github action

The reason I set it up is because I like to spin up a bunch of temporary linode instances. The way I use it is I put the ip address into the inventory and then it runs, and I then have to remove that ip address because it locks to my automation which runs on root.

ansible's People

Contributors

thegreatestgiant avatar

Watchers

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