GithubHelp home page GithubHelp logo

ansible-playbooks's Introduction

My Playbooks

A collection of minimalist Ansible playbooks for automating server setups

*the Initial Server Setup should be your starting point for fresh servers.

Ansible >= 2.11.5 required

Connection Test

From your local machine or Ansible control node, run:

# Test with password and login
ansible all -m ping -u remote_user

# Test with ssk key
ansible all -m ping \
-u root \
--key-file=~/.ssh/id_rsa

If you're able to get a "pong" reply back from your node(s), your setup works as expected and you'll be able to run both ad-hoc commands and playbooks on your nodes, using Ansible.

1 - Clone

$git clone [email protected]:onovaes/ansible-playbooks.git
cd ansible-playbooks

2 - Conffile

$cp initial_setup_ubuntu2004/vars/example-default.yml initial_setup_ubuntu2004/vars/default.yml

3 - Run Playbook

# RUN as root
$ansible-playbook initial_setup_ubuntu2004/playbook.yml -u root 

# RUN as otheruser with only called "dev" hosts group 
$ansible-playbook initial_setup_ubuntu2004/playbook.yml -u otheruser -l dev --check --diff

TODO's

[] Tirar inventario do playbook, pois devo passar como parametro no docker [] validando instlaco do dockers [] Acredito que não estava fazendo o upgrade inicial automatico

ansible-playbooks's People

Contributors

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