Git Product home page Git Product logo

ansible's Introduction

Ansible Automation Scripts for CentOS 8

by rob saffell

Important

Important Notes:

  1. By default Ansible checks /etc/ansible/hosts for the default hosts file.
  • I recommend changing the host(s) IP addresses to reflect your network layout.
  • I recommend then putting hosts in /etc/ansible/
  1. By default Ansible checks /etc/ansible/vars for default vars
  • I did not use any default vars - this file is not required for this scenario, but you could create a file and define puppet vars there
  1. The shell script installs ansible without any of the default files - if people install it differently, they may see different results
  2. All of the above is subject to change without notice - welcome to continuous delivery.
  3. Finally - google is your friend. If you don't understand something, search first, try something second, ask third.

Recommended Sequence of Actions:

  1. copy ansibleInstall.sh onto target Cent OS 8 VM
  • vim ansibleInstall.sh and see what it is you are about to run
  1. chmod +x ansibleInstall.sh
  2. After you understand it, run ./ansibleInstall.sh
  3. copy playbook.yaml onto target control Cent OS 8 VM in your home directory
  4. copy hosts onto target control Cent OS 8 VM into /etc/ansible directory
  • vim playbook.yaml and see what it is doing
  1. After you understand playbook.yaml, run ansible-playbook playbook.yaml
  2. troubleshoot all errors

Note: I added my gitPlaybook.yaml just as another use case.

This is an example of automating even code updates.

cthulu

ansible's People

Contributors

xenon-manta avatar

Stargazers

Alex Parker avatar  avatar  avatar

Watchers

Alex Parker 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.