34 lines
780 B
YAML
34 lines
780 B
YAML
---
|
|
#
|
|
# Setup ansible-server instance
|
|
#
|
|
- name: install needed packages
|
|
yum: pkg={{ item }} state=present
|
|
with_items:
|
|
- ansible
|
|
- git
|
|
tags:
|
|
- packages
|
|
- ansible-server
|
|
|
|
- name: generate default ansible config
|
|
template: src=ansible.cfg.j2 dest=/etc/ansible/ansible.cfg owner=root group=root mode=0644
|
|
tags:
|
|
- ansible-server
|
|
|
|
- name: installing the phx2 dns check script
|
|
copy: src=dns_check.py dest=/usr/local/bin/dns_check owner=root mode=0755
|
|
tags:
|
|
- ansible-server
|
|
|
|
# https://github.com/ansible/ansible-modules-core/pull/4070
|
|
- name: Fix the nova_compute module
|
|
patch: src=4070.patch
|
|
dest=/usr/lib/python2.7/site-packages/ansible/modules/core/cloud/openstack/_nova_compute.py
|
|
#
|
|
#
|
|
# TODO:
|
|
# cgit?
|
|
# rbac-playbook?
|
|
# zodbot notifications?
|
|
#
|