ansible/playbooks/groups/resultsdb-dev.yml

55 lines
1.7 KiB
YAML

---
# create a new resultsdb dev server
# NOTE: make sure there is room/space for this server on the vmhost
# NOTE: most of these vars_path come from group_vars/mirrorlist or from hostvars
- include_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=resultsdb-dev"
- name: make the box be real
hosts: resultsdb-dev
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
roles:
- { role: base, tags: ['base'] }
- { role: rkhunter, tags: ['rkhunter'] }
- { role: nagios_client, tags: ['nagios_client'] }
- { role: hosts, tags: ['hosts']}
- { role: fas_client, tags: ['fas_client'] }
- { role: collectd/base, tags: ['collectd_base'] }
- { role: dnf-automatic, tags: ['dnfautomatic'] }
- { role: sudo, tags: ['sudo'] }
- apache
tasks:
# this is how you include other task lists
- include_tasks: "{{ tasks_path }}/yumrepos.yml"
- include_tasks: "{{ tasks_path }}/2fa_client.yml"
- include_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- include_tasks: "{{ handlers_path }}/restart_services.yml"
- name: configure resultsdb and execdb
hosts: resultsdb-dev
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
roles:
- { role: taskotron/resultsdb-backend, tags: ['resultsdb-be'] }
- { role: taskotron/resultsdb-frontend, tags: ['resultsdb-fe'] }
- { role: taskotron/execdb, tags: ['execdb'] }
handlers:
- include_tasks: "{{ handlers_path }}/restart_services.yml"