Files
fedora-infra_ansible/playbooks/groups/debuginfod.yml
iamyaash b3d6a90b9a motd generic template added
migrated notes from infra/hosts

motd changes; excluding CSI infos

removed csi_* vars from group_vars; converted csi_purpose & csi_relationship into notes

fixed merge conflicts

minor changes; var

updating YAMLs & playbooks

udpated YAMLs & playbooks again

updated correctly; buildhw.yml

fixing merge conflicts

dest added in motd.yml
2025-01-28 01:10:14 +00:00

81 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"