Files
fedora-infra_ansible/playbooks/groups/loopabull.yml
Kevin Fenzi 0acfaa2a7e Fix handlers, roles, and tasks to be handlers_path, roles_path and tasks_path so as not to conflict with ansible variables.
Fix duplicate definition of become default that was in group_vars/all as well as vars/global.
2017-04-13 15:46:14 +00:00

62 lines
1.4 KiB
YAML

# create a new loopabull server
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=loopabull-stg"
- name: make the box be real
hosts: loopabull-stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- "/srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml"
pre_tasks:
- include: "{{ tasks_path }}/yumrepos.yml"
roles:
- base
- rkhunter
- nagios/client
- hosts
- fas_client
- collectd/base
- sudo
tasks:
- include: "{{ tasks_path }}/2fa_client.yml"
- include: "{{ tasks_path }}/motd.yml"
handlers:
- include: "{{ handlers_path }}/restart_services.yml"
- name: Deploy and configure loopabull
hosts: loopabull-stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- "/srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml"
tasks:
- name: git clone the releng-automation playbook repo
git:
repo: "https://pagure.io/releng-automation.git"
dest: "/usr/local/loopabull-playbooks"
roles:
- {
role: loopabull,
plugin: fedmsg,
routing_keys: [
"org.fedoraproject.prod.buildsys.build.state.change"
],
playbooks_dir: /usr/local/loopabull-playbooks/,
ansible_cfg_path: /etc/ansible/ansible.cfg,
playbook_cmd: /usr/bin/ansible-playbook
}