githubEdit

Ansible

Ansible

Introduction

...

Install

Before install

# denpend
ssh protocal
python2(scp)
python3(sftp)

# network
firewalld

Install on linux

# root dir
ANSIBLE_ROOT=/opt/ansible
mkdir $ANSIBLE_ROOT && cd $ANSIBLE_ROOT


# option1: install on source
git clone https://github.com/ansible/ansible.git
cd ansible
python setup.py build
python setup.py install
cp -aR examples/* $ANSIBLE_ROOT
# option2: install on pip
pip install ansible==x.x.x
cp -aR examples/* $ANSIBLE_ROOT


# verify
ansible --version


# set ansible.cfg environment
export ANSIBLE_CONFIG=/opt/ansible

Credentials

inventory

ad-hoc modules

vars fact template

ansible-console

ansible-doc

ansible-galaxy

ansible-lint

ansible-playbook

ansible-vault

plugins && api

Reference:

Last updated