Using ansible » History » Version 1
Alex V Koval, 01/07/2013 09:11 AM
1 | 1 | Alex V Koval | h1. Using ansible |
---|---|---|---|
2 | |||
3 | Ansible is a software to perform automated updates and configuration management on remote servers over SSH. |
||
4 | |||
5 | The site is: |
||
6 | http://ansible.cc/ |
||
7 | |||
8 | How we are using ansible? For every project, there is file doc/ssh_config.txt which is a part of standard |
||
9 | ~/.ssh/config file related to project, contained server aliases. |
||
10 | |||
11 | To transfer those aliases into Ansible 'hosts' file format, use the supplied Python program. |
||
12 | |||
13 | There is admin project within UA2WEB which contains all different project groups into one file, the |
||
14 | repository is accessible from: |
||
15 | |||
16 | * ssh://root@hosting/ansible |
||
17 | |||
18 | This also includes Playbook scenarios to perform various support tasks. |
||
19 | |||
20 | h2. Some examples of using it: |
||
21 | |||
22 | Check GLSA: |
||
23 | <pre> |
||
24 | ansible ua2web -u root -a "glsa-check -l -q" |
||
25 | </pre> |
||
26 | |||
27 | Check if any of UA2WEB servers needs system update: |
||
28 | <pre> |
||
29 | ansible ua2web -u root -a "emerge -up system" |
||
30 | </pre> |