mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 03:23:08 +08:00
Fix duplicate definition of become default that was in group_vars/all as well as vars/global.
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
# create a new loopabull server
|
|
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=loopabull-stg"
|
|
|
|
- name: make the box be real
|
|
hosts: loopabull-stg
|
|
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: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
roles:
|
|
- base
|
|
- rkhunter
|
|
- nagios/client
|
|
- hosts
|
|
- fas_client
|
|
- collectd/base
|
|
- sudo
|
|
|
|
tasks:
|
|
- include: "{{ tasks_path }}/2fa_client.yml"
|
|
- include: "{{ tasks_path }}/motd.yml"
|
|
|
|
handlers:
|
|
- include: "{{ handlers_path }}/restart_services.yml"
|
|
|
|
- name: Deploy and configure loopabull
|
|
hosts: loopabull-stg
|
|
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"
|
|
|
|
tasks:
|
|
- name: git clone the releng-automation playbook repo
|
|
git:
|
|
repo: "https://pagure.io/releng-automation.git"
|
|
dest: "/usr/local/loopabull-playbooks"
|
|
|
|
roles:
|
|
- {
|
|
role: loopabull,
|
|
plugin: fedmsg,
|
|
routing_keys: [
|
|
"org.fedoraproject.prod.buildsys.build.state.change"
|
|
],
|
|
playbooks_dir: /usr/local/loopabull-playbooks/,
|
|
ansible_cfg_path: /etc/ansible/ansible.cfg,
|
|
playbook_cmd: /usr/bin/ansible-playbook
|
|
}
|
|
|
|
|