add mirrorlist playbook
This commit is contained in:
parent
58cd7a6fe7
commit
9b9f6a90b7
2 changed files with 54 additions and 0 deletions
|
@ -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
|
||||
|
|
52
playbooks/groups/mirrorlist.yml
Normal file
52
playbooks/groups/mirrorlist.yml
Normal file
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue