Add ansible-server role
This commit is contained in:
parent
2e909f8205
commit
693f1ca2d0
2 changed files with 19 additions and 3 deletions
|
@ -2,7 +2,6 @@
|
|||
hosts: lockbox
|
||||
user: root
|
||||
gather_facts: False
|
||||
accelerate: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -11,7 +10,6 @@
|
|||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/virt_instance_create.yml"
|
||||
- include: "{{ tasks }}/accelerate_prep.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
@ -20,7 +18,6 @@
|
|||
hosts: lockbox
|
||||
user: root
|
||||
gather_facts: True
|
||||
accelerate: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -33,6 +30,7 @@
|
|||
- /srv/web/infra/ansible/roles/denyhosts
|
||||
- /srv/web/infra/ansible/roles/nagios_client
|
||||
- /srv/web/infra/ansible/roles/fas_client
|
||||
- /srv/web/infra/ansible/roles/ansible-server
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/hosts.yml"
|
||||
|
|
18
roles/ansible-server/tasks/main.yml
Normal file
18
roles/ansible-server/tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
#
|
||||
# Setup ansible-server instance
|
||||
#
|
||||
- name: install needed packages
|
||||
yum: pkg={{ item }} state=installed
|
||||
with_items:
|
||||
- ansible
|
||||
- git
|
||||
tags:
|
||||
- packages
|
||||
|
||||
#
|
||||
# TODO:
|
||||
# cgit?
|
||||
# rbac-playbook?
|
||||
# zodbot notifications?
|
||||
#
|
Loading…
Add table
Add a link
Reference in a new issue