Git Product home page Git Product logo

cas-ansible-demo's Introduction

Sample Content for Using Ansible with Cloud Automation Services

Contents

  • web.yml - Simple Playbook for deploying Nginx
  • blueprint.yaml - Blueprint with an Ansible Object

Overview

Ansible integration in Cloud Automation Services leverages an Ansible Control Machine to act as a central point for executing the playbooks. Both provisioning and de-provisioning playbooks are supported.

From an authentication to ansible hosts, we support a number of methods:

  • Generated Key
  • Public Key
  • Username and Password

Your Ansible Control Machine

Only Ansible 2.6+ is supported currently. Ensure you have upgraded your Ansible installation using pip --upgrade ansible. If you do not have pip installed, you'll need to install it...

  • Ubuntu: apt install python-pip -y

  • CentOS: yum install python-pip -y

  • Ubuntu: To install/upgrade using apt, run the following:

sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible -y

Once that is created, you will need to provide a user with sufficient credentials to connect to the Ansible control machine via the integration over SSH.

Playbooks

Ensure that you have copied your playbooks to a directory with appropriate access on the Ansible Control Machine (ACM). In the blueprint sample above we have created our integration using the root (not recommended) account, and our playbooks live in /root/playbooks.

A Note on Ansible Requirements

Ensure you have Python installed on the endpoint machines; Python is required for Ansible to function.

cas-ansible-demo's People

Contributors

codyde avatar rhjensen79 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.