You are on page 1of 6

Ansible

Software provisioning, configuration management, and application-


deployment tool
How Ansible works
Host 1

ssh

Host 2
Controller/Control openssh/winrm
node
ssh

ope Host 3
nss
h /wi
nrm

Host n
Ansible simple use case
• Command execution on remote hosts
• Environment variables manipulation
tm-ans-win12 • File transfer to remote hosts

• At the end of each task, the host sends a HTTP


POST request to controller node with execution
tm-ans-win8 status
tm-chef-server

tm-ans-win16

tm-chef-dev
Ansible TM installer
TM configuration
Tm-chef-xes
Tm-chef-app
XE, XES, profiles,
ConfigServer, SDK, DB selector
Tomcat, SDK,
JMS queue

Tm-ans-win8

ServiceManager
with services
Ansible TM installer playbooks layout
- /apps
- /prerequisites

- /roles (Roles provide a framework for fully independent, or interdependent collections of variables, tasks, files, templates, and modules)

- /eam
- /xe
- /xes
- /tm

- /inventories (where hosts are defined)


- /distributed
- hosts
- /standalone
- hosts
- /vars (variables definition)
- main.yml (entrance)
Ansible TM Installer inventory (distributed)

[tm_group]
tm-chef-app
tm-chef-xes
tm-ans-win8 ansible_user=Administrator

[xe_group]
tm-chef-xes

[xes_group]
tm-chef-xes

[eam_group]
tm-chef-xes

You might also like