49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
# create a new releng system
|
|
# NOTE: should be used with --limit most of the time
|
|
# NOTE: make sure there is room/space for this instance on the buildvmhost
|
|
# NOTE: most of these vars_path come from group_vars/releng or from hostvars
|
|
|
|
- name: make releng systems
|
|
hosts: releng02.phx2.fedoraproject.org
|
|
user: root
|
|
gather_facts: False
|
|
accelerate: "{{ accelerated }}"
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "{{ private }}/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
tasks:
|
|
- include: "{{ tasks }}/virt_instance_create.yml"
|
|
|
|
handlers:
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|
|
# Once the instance exists, configure it.
|
|
|
|
- name: make releng server system
|
|
hosts: releng02.phx2.fedoraproject.org
|
|
user: root
|
|
gather_facts: True
|
|
accelerate: "{{ accelerated }}"
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "{{ private }}/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
roles:
|
|
- base
|
|
- nagios_client
|
|
- collectd/base
|
|
- hosts
|
|
- fedmsg/base
|
|
|
|
tasks:
|
|
- include: "{{ tasks }}/koji/releng_config.yml"
|
|
- include: "{{ tasks }}/motd.yml"
|
|
|
|
handlers:
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|