mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
In ansible 2.8 the - character isn't supposed to be valid in group names. While we could override this, might has well just bite the bullet and change it. So, just switch all group names to use _ instead of - Signed-off-by: Kevin Fenzi <kevin@scrye.com>
74 lines
2.2 KiB
YAML
74 lines
2.2 KiB
YAML
# create a new taskotron client host server system
|
|
# NOTE: should be used with --limit most of the time
|
|
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
|
# This has an extra role that configures the virthost to be used with beaker for
|
|
# virtual machine clients
|
|
|
|
- name: basic configuration
|
|
hosts: taskotron_dev_client_hosts:taskotron_stg_client_hosts:taskotron_prod_client_hosts
|
|
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_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
roles:
|
|
- base
|
|
- rkhunter
|
|
- nagios_client
|
|
- hosts
|
|
- fas_client
|
|
- collectd/base
|
|
- sudo
|
|
- { role: openvpn/client, when: datacenter != "phx2" }
|
|
|
|
tasks:
|
|
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
|
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
|
|
|
handlers:
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
|
|
|
- name: configure taskotron imagefactory
|
|
hosts: qa11.qa.fedoraproject.org:qa12.qa.fedoraproject.org
|
|
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/imagefactory, tags: ['taskotronimagefactory'] }
|
|
|
|
handlers:
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
|
|
|
- name: configure taskotron client host
|
|
hosts: taskotron_dev_client_hosts:taskotron_stg_client_hosts:taskotron_prod_client_hosts
|
|
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/taskotron-client, tags: ['taskotronclient'] }
|
|
- { role: taskotron/imagefactory-client, tags: ['imagefactoryclient']}
|
|
- { role: taskotron/buildslave, tags: ['buildslave'] }
|
|
- { role: taskotron/buildslave-configure, tags: ['buildslaveconfigure'] }
|
|
|
|
handlers:
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
|
|
|
|