Giter VIP home page Giter VIP logo

ansible-ubuntu-manage's Introduction

SYSTEM-Ansible-Ubuntu

by Nicolas MICHEL @vpackets / LinkedIn / Blog

This disclaimer informs readers that the views, thoughts, and opinions expressed in this series of posts belong solely to the author, and not necessarily to the author’s employer, organization, committee or other group or individual.

Description

Multiple playbooks that will perform basic function on Ubuntu (tested with 18.04.3) : Install package - Install Docker - Reboot and Update.

Requirements

  • Python (≥ 2.6)
  • Ansible
  • PyVmomi

Configuration files:

├── README.md
├── complete-deployment.yaml
├── docker-stop-test-container.yaml
├── docker-sudo.yaml
├── install-docker.yaml
├── install-package.yaml
├── reboot.yaml
└── update.yaml

Playbook execution:

Step 1: Update Ubuntu on Ubuntu Virtual machines

ansible-playbook -k --extra-vars "ansible_user=nmichel" --ask-become-pass update.yaml  

Step 2: Reboot Ubuntu on Ubuntu Virtual machines

ansible-playbook -k --extra-vars "ansible_user=nmichel" --ask-become-pass reboot.yaml  

Step 3: Install Package on Ubuntu Virtual machines

ansible-playbook -k --extra-vars "ansible_user=nmichel" --ask-become-pass install-package.yaml  

Step 4: Install docker

ansible-playbook -k --extra-vars "ansible_user=nmichel" --ask-become-pass install-docker.yaml 

Step 5: Add the Docker group to the user nmichel

ansible-playbook -k --extra-vars "ansible_user=nmichel" --ask-become-pass docker-sudo.yaml

Step 6: Stop the test containers

ansible-playbook -k --extra-vars "ansible_user=nmichel" --ask-become-pass docker-stop-test-container.yaml

Step 0: Deploy the complete solution

ansible-playbook -k --extra-vars "ansible_user=nmichel" --ask-become-pass complete-deployment.yaml

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.