hidden:Ansible on hpa: Difference between revisions

From Lsdf
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[http://docs.ansible.com Ansible] ([https://github.com/ansible/ansible on github]) is a configuration manager that can run along side existing configuration programs like puppet, cfengine etc... Only ssh access from server to client is required. The Ansible directory on hpa is: '''/root/Ansible'''.
[http://docs.ansible.com Ansible] ([https://github.com/ansible/ansible on github]) is a configuration manager that requires no software installation on the target hosts and can run along side existing configuration programs like puppet, cfengine etc... Only ssh access from server to client is required. The Ansible directory on hpa is: '''/root/Ansible'''.


The ansible configuration system uses '''playbooks''' at the top level. Playbooks contain plays, plays consist of tasks and tasks call modules. The modules are the core of ansible. These are ready made functions that can setup the network, copy files, install software etc. You can find the catalog of modules [http://docs.ansible.com/ansible/modules_by_category.html|here]
The ansible configuration system uses '''playbooks''' at the top level. Playbooks contain plays, plays consist of tasks and tasks call modules. The modules are the core of ansible. These are ready made functions that can setup the network, copy files, install software etc. You can find the catalog of modules [here http://docs.ansible.com/ansible/modules_by_category.html]. Everything runs strict step by step except handlers. Tasks can trigger handlers. Handlers run at the end, once.
Everything runs strict step by step except handlers. Tasks can trigger handlers. Handlers run at the end, once.


To become familiar with ansible here are a few examples.
To become familiar with ansible here are a few examples.


* 1
* 2


The following recipes are currently implemented
The following playbooks are currently available


* update automount files
* update automount files
* update rsyslog.conf files
* update rsyslog.conf files

== Installation log==
Added the epel repo to the list of repos
# rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epelrelease-7-5.noarch.rpm
Run an update check
# yum update
Install Ansible (on hpa this installed ansible and 12 dependencies most notable a bunch of python packages
# yum install ansible
Ansible normally lives out of /etc. I have changed the location of the ansible files to /root/Ansible using a symlink in /etc/

Revision as of 23:34, 7 June 2016

Ansible (on github) is a configuration manager that requires no software installation on the target hosts and can run along side existing configuration programs like puppet, cfengine etc... Only ssh access from server to client is required. The Ansible directory on hpa is: /root/Ansible.

The ansible configuration system uses playbooks at the top level. Playbooks contain plays, plays consist of tasks and tasks call modules. The modules are the core of ansible. These are ready made functions that can setup the network, copy files, install software etc. You can find the catalog of modules [here http://docs.ansible.com/ansible/modules_by_category.html]. Everything runs strict step by step except handlers. Tasks can trigger handlers. Handlers run at the end, once.

To become familiar with ansible here are a few examples.

  • 1
  • 2

The following playbooks are currently available

  • update automount files
  • update rsyslog.conf files

Installation log

Added the epel repo to the list of repos

 # rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epelrelease-7-5.noarch.rpm

Run an update check

 # yum update

Install Ansible (on hpa this installed ansible and 12 dependencies most notable a bunch of python packages

 #  yum install ansible

Ansible normally lives out of /etc. I have changed the location of the ansible files to /root/Ansible using a symlink in /etc/