Code Monkey home page Code Monkey logo

ansible-repo-template's Introduction

Ansible template repo

This is an Ansible template to help provision an environment. It provides the base environment and configuration to help others use Ansible. This repo is meant to be used as an entry point to configure an environment, but will not provide the default set of roles you might need.

Getting Started

Clone this repository, remove the .git folder, and reinitialize a local repo. Alternatively, you can download the contents of this repo as a .zip file, and initialize a local repo from there. After that, there are a few extra checklist items that must be done.

Pre-flight checklist:

  • Install Ansible.
  • Create an SSH key for your Ansible user.
  • Store the public key for Ansible user at files/authorized_keys/ansible.
  • Update the hosts file with your inventory.
  • Update requirements.yml with any roles you depend on in your environment.
  • Rename somegroup to a more meaningful name.

To download or update roles and collections:

ansible-galaxy install -r requirements.yml
ansible-galaxy collection install -r requirements.yml

To bootstrap the entire environment (with an optional inventory file):

ansible-playbook [-i inventoryfile] initialize.yml

To apply changes to the whole environment:

ansible-playbook site.yml

There are plenty of other things for which you can now use this repository, so be sure to check out other Ansible docs.

ansible-repo-template's People

Contributors

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