ansible/playbooks/groups/debuginfod.yml
Michal Konecny 2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00

80 lines
2.2 KiB
YAML

---
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
vars:
myhosts: "debuginfod:debuginfod_stg"
- name: Make the box be real
hosts: debuginfod:debuginfod_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:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
roles:
- base
- rkhunter
- nagios_client
- zabbix/zabbix_agent
- hosts
- ipa/client
- collectd/base
- role: nfs/client
mount_stg: true
mnt_dir: '/mnt/fedora_koji_prod'
nfs_src_dir: "fedora_koji"
tasks:
- name: install debuginfod
ansible.builtin.package: name=elfutils-debuginfod state=present
tags: debuginfod
- name: Install sqlite for diagnostics
ansible.builtin.package: name=sqlite state=present
tags: debuginfod
- name: Install sqlite-analyzer for diagnostics
ansible.builtin.package: name=sqlite-analyzer state=present
tags: debuginfod
- name: Install sqlite for diagnostics
ansible.builtin.package: name=sqlite state=present
tags: debuginfod
- name: Install rsync for data backups
ansible.builtin.package: name=rsync state=present
tags: debuginfod
- name: Install debuginfod configuration
ansible.builtin.copy: src="{{ files }}/debuginfod/sysconfig.debuginfod" dest=/etc/sysconfig/debuginfod owner=root group=root mode=644
tags: debuginfod
notify:
- Restart debuginfod
- name: Ensure systemd drop-in directory exists
ansible.builtin.file: >
dest=/etc/systemd/system/debuginfod.service.d
state=directory
tags: debuginfod
- name: Install debuginfod systemd drop-in
tags: debuginfod
ansible.builtin.copy: src="{{ files }}/debuginfod/debuginfod.service.d" dest=/etc/systemd/system/debuginfod.service.d/override.conf owner=root group=root mode=644
notify:
- Restart debuginfod
- name: Ensure debuginfod is enabled and started
service:
name: debuginfod
state: started
enabled: yes
tags: debuginfod
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"