add buildhw playbook and groupvar
This commit is contained in:
parent
443000715a
commit
4c8c46f733
2 changed files with 33 additions and 0 deletions
5
inventory/group_vars/buildhw
Normal file
5
inventory/group_vars/buildhw
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
freezes: true
|
||||||
|
|
||||||
|
|
||||||
|
|
28
playbooks/groups/buildhw.yml
Normal file
28
playbooks/groups/buildhw.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# create a new koji builder on raw hw
|
||||||
|
# NOTE: should be used with --limit most of the time
|
||||||
|
# NOTE: most of these vars come from group_vars/buildhw or from hostvars
|
||||||
|
|
||||||
|
- name: make koji builder(s) on raw hw
|
||||||
|
hosts: buildhw
|
||||||
|
user: root
|
||||||
|
gather_facts: False
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- ${private}/vars.yml
|
||||||
|
- ${vars}/${ansible_distribution}.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: $tasks/koji/base_builder.yml
|
||||||
|
- include: $tasks/koji/builder_kernel_config.yml
|
||||||
|
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: $handlers/restart_services.yml
|
||||||
|
|
||||||
|
- name: restart kojid
|
||||||
|
action: service name=kojid state=restarted
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue