---
#
# Setup ansible-server instance
#
- name: install needed packages
  package: name={{ 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/cloud/openstack/_nova_compute.py
#
#
# TODO:
#  cgit?
#  rbac-playbook?
#  zodbot notifications?
#
