diff --git a/inventory/host_vars/mirrorlist-osuosol.fedoraproject.org b/inventory/host_vars/mirrorlist-osuosol.fedoraproject.org index 1f5a74ef4f..f32c27a52a 100644 --- a/inventory/host_vars/mirrorlist-osuosol.fedoraproject.org +++ b/inventory/host_vars/mirrorlist-osuosol.fedoraproject.org @@ -1,3 +1,4 @@ +--- nm: 255.255.255.192 gw: 140.211.169.193 dns: 140.211.166.130 @@ -5,3 +6,4 @@ ks_url: http://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-rhel-6 ks_repo: http://infrastructure.fedoraproject.org/repo/rhel/RHEL6-x86_64/ volgroup: /dev/VolGroup00 eth0_ip: 140.211.169.228 +vmhost: osuosl01.fedoraproject.org diff --git a/playbooks/groups/mirrorlist.yml b/playbooks/groups/mirrorlist.yml new file mode 100644 index 0000000000..19c1a8bbf1 --- /dev/null +++ b/playbooks/groups/mirrorlist.yml @@ -0,0 +1,52 @@ +# create a new mirrorlist server +# NOTE: should be used with --limit most of the time +# NOTE: make sure there is room/space for this server on the vmhost +# NOTE: most of these vars come from group_vars/mirrorlist or from hostvars + +- name: make mirrorlist app server + hosts: mirrorlist + user: root + gather_facts: False + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + - ${vars}/${ansible_distribution}.yml + + tasks: + - include: $tasks/virt_instance_create.yml + + handlers: + - include: $handlers/restart_services.yml + + +- name: make the box be real + hosts: mirrorlist + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + - ${vars}/${ansible_distribution}.yml + + tasks: + # this is how you include other task lists + - include: $tasks/hosts.yml + - include: $tasks/yumrepos.yml + - include: $tasks/base.yml + - include: $tasks/fas_client.yml + - include: $tasks/2fa_client.yml + - include: $tasks/motd.yml + - include: $tasks/sudo.yml + - include: $tasks/rkhunter.yml + - include: $tasks/denyhosts.yml + - include: $tasks/nagios_client.yml + + + handlers: + - include: $handlers/restart_services.yml + + + +