38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
# create a new beaker virthost 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: make virthost server system
|
|
hosts: beaker_virthosts
|
|
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:
|
|
- base
|
|
- rkhunter
|
|
- nagios_client
|
|
- hosts
|
|
- fas_client
|
|
- collectd/base
|
|
- { role: iscsi_client, when: datacenter == "phx2" }
|
|
- sudo
|
|
- { role: openvpn/client, when: datacenter != "phx2" }
|
|
- { role: beaker/virthost, tags: ['beakervirthost'] }
|
|
|
|
pre_tasks:
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
tasks:
|
|
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
|
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
|
|
|
handlers:
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|