mirror of
https://github.com/rocky-linux/ansible-role-kojid.git
synced 2024-11-15 01:31:24 +00:00
71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
---
|
|
# kojid configuration
|
|
|
|
# sysctl and limits
|
|
- name: set highmem_is_dirtyable on armv7 builders if applicable
|
|
ansible.builtin.sysctl:
|
|
name: vm.highmem_is_dirtyable
|
|
value: 1
|
|
state: present
|
|
sysctl_set: true
|
|
reload: true
|
|
when: ansible_architecture == 'armv7l'
|
|
|
|
- name: Set nofile limit to 10240
|
|
ansible.builtin.template:
|
|
template: 00-limit.conf.j2
|
|
dest: /etc/security/limits.d/00-limit.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
|
|
# oz and plugins
|
|
- name: OZ Config
|
|
ansible.builtin.template:
|
|
src: oz.cfg.j2
|
|
dest: /etc/oz/oz.cfg
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart_kojid
|
|
|
|
- name: runroot config
|
|
ansible.builtin.template:
|
|
src: runroot.conf.j2
|
|
dest: /etc/kojid/plugins/runroot.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart_kojid
|
|
|
|
# kojid base configuration
|
|
- name: Configure koji.conf
|
|
ansible.builtin.template:
|
|
src: koji.conf.j2
|
|
dest: /etc/koji.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart_kojid
|
|
|
|
- name: Configure kojid
|
|
ansible.builtin.template:
|
|
src: kojid.conf.j2
|
|
dest: /etc/kojid/kojid.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart_kojid
|
|
|
|
# systemd override
|
|
- name: Override kojid.service
|
|
ansible.builtin.template:
|
|
template: kojid.service.j2
|
|
dest: /etc/systemd/system/kojid.service
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- reload_systemd
|
|
- restart_kojid
|