Download presentation
1
Ansible with vCloud Air Workshop
Install, configure and use Ansible on your laptop to provision workloads in vCloud Air
2
Abstract Learn the basics of Ansible, use this workshop to install, setup and configure Ansible on your laptop. Once you have successfully configured Ansible, then learn how to use it for DevOps deployment into your vCloud Air environments. Dylan Silva, Sales Engineer, Ansible Inc. 8/31/2015
3
What is Ansible? SIMPLE AGENTLESS POWERFUL Human Readable Automation
No Special Coding Skills Required Tasks executed in order Get Productive Quickly AGENTLESS No extra code to manage Uses OpenSSH No agents to exploit or update More Efficient and Secure POWERFUL App Deployment Configuration Management Workflow Orchestration Orchestrate the app lifecycle
4
Inventory Modules Tasks Plays Playbooks Ansible Components
CONFIDENTIAL
5
Inventory Hosts and Groups Inventory Sources
6
Inventory-specific data Static / Dynamic Sources
Inventory Concepts Hosts Groups Inventory-specific data Static / Dynamic Sources CONFIDENTIAL
7
Defines: Port and Address Remote/sudo usernames Connection type
Inventory: Hosts Defines: Port and Address Remote/sudo usernames Connection type CONFIDENTIAL
8
Inventory: Hosts CONFIDENTIAL
9
Inventory: Hosts CONFIDENTIAL
10
Inventory: Hosts CONFIDENTIAL
11
Modules Bits of code copied to the target system.
Executed to satisfy the task declaration. Customizable.
12
vca_vapp vca_nat vca_fw apt/yum copy file service template
Modules Examples vca_vapp vca_nat vca_fw apt/yum copy file service template CONFIDENTIAL
13
TASKS Directory should exist Package should be installed
Service should be running Render a template into a configuration file vCloud Air instance should exist
14
Tasks: Examples CONFIDENTIAL
15
file: path=/opt/cache state=directory - name: install nginx
Using Modules in Tasks - name: add cache dir file: path=/opt/cache state=directory - name: install nginx yum: name=nginx state=present - name: start nginx service: name=nginx enabled=yes state=started state=started CONFIDENTIAL
16
Exercise 1 Install Ansible Setup key(s) Run a couple of tasks
17
Plays Play naming Hosts selection Play arguments Variables Tasks
Concurrency and order of operations Conditionals
18
Play Naming name: This is a Play CONFIDENTIAL
19
Hosts Selection name: This is a Play hosts: web-servers CONFIDENTIAL
20
Play Arguments name: This is a Play hosts: web-servers
remote_user: fred sudo: yes connection: ssh CONFIDENTIAL
21
cache_dir: /opt/cache
Variables name: This is a Play hosts: web-servers remote_user: fred sudo: yes connection: ssh vars: http_port: 80 cache_dir: /opt/cache CONFIDENTIAL
22
Tasks name: This is a Play hosts: web-servers remote_user: fred
sudo: yes connection: ssh vars: http_port: 80 cache_dir: /opt/cache tasks: - name: create cache dir file: path={{ cache_dir }} state=directory - name: install nginx yum: name=nginx state=installed CONFIDENTIAL
23
Exercise 2 Download playbooks Make modifications to playbooks
Execute Playbooks against vCloud Air
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.