Giter VIP home page Giter VIP logo

ansible-at-scale-demo's Introduction

Ansible at scale - working with multiple environments

Demo repository

To reproduce:

  • Create three Ubuntu Server 24.04 machines or later.
  • On your developer PC (where you will be running ansible-playbook from), create hosts entries in /etc/hosts for the machines pointing the hostnames from the hosts file to the relevant IPs.
  • Configure SSH key authentication on the machines or be lazy like me and enable root password login by modifying /etc/ssh/sshd_config, setting PermitRootLogin yes.
  • Set the password of the root users in each machine to the same password (note: NOT recommended for production! This is where using keys becomes convenient and safer).
  • On your developer PC run ansible-playbook -i environments/ubuntu playbooks/ubuntu.yml --ask-pass and type in the root password you just configured (leave out --ass-pass if you are using keys).

(Please note that the html_root in the group_vars/all/main.yml file is not actually used - but easily could be.)

Congratulations, you now have three apache servers!

Please refer to the Medium blog post for further details.

ansible-at-scale-demo's People

Contributors

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