GithubHelp home page GithubHelp logo

siragi / ansible Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 59 KB

all necessary files (conf, playbooks, roles and app) to get setup virtual servers named in inventory-dev and get a simple python based webservice running

Python 76.97% Shell 23.03%

ansible's Introduction

ansible sample

all necessary files (conf, playbooks, roles and app) to prepare virtual servers named in 'inventory-dev' and get a simple python based webservice running

installation

  1. install ansible at your ansible server called 'control'
  2. create a file ~/.ansiblevaultpassword (acc. to the ansible.cfg) and put your own password for the ansibleencryption into
  3. clone it or transfer code to the 'control' server (for example into /work/ansible)
  4. create virtmachines (use ubuntu1804.iso) with a 'ansible' user at every server mentioned in file 'inventory-dev'
  5. create ssh key for ansible user at 'control' server, and distribute the public-key using ssh-copy-id ansible@servername
  6. adapt group_vars/all/vault and encrypt the vault using the description in the file itself

usage

  1. go into the ansible dir (on your ansible 'control' server) and try it out using: Usage: ansible-playbook [options] playbook.yml [playbook2 ...]
  2. all in one server setup: ansible-playbook site.yml
  3. test it ansible-playbook playbooks/stack_status.yml you may have to install also python2 (depending on your ubuntu.iso) ansible-playbook playbooks/pretaskpython.yml
  4. use the app, gathering info from loadbalancer: curl lb01, curl lb01/db or direct from the two apache webserver eg.curl app01for a simple apache/wsgi response using the py-app.

ansible's People

Contributors

siragi avatar

Stargazers

 avatar

Watchers

James Cloos 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.