system-config/playbooks/roles/reprepro/tasks/main.yaml
Ian Wienand 6b63afaa21 reprepro: only rotate .log files
It seems we're trying to rotate everything in this directory, leading
to an ever increasing set of weird rotation files as old rotations get
rotated themselves.

Change-Id: Ifd53879061baac35253782126367016b74a9cb70
2021-01-18 08:29:49 +11:00

91 lines
1.7 KiB
YAML

- name: Install afsadmin keytab
shell: 'echo "{{ reprepro_keytab }}" | base64 -d > /etc/reprepro.keytab'
args:
creates: /etc/reprepro.keytab
no_log: True
- name: Ensure permissions on reprepro keytab
file:
path: '/etc/reprepro.keytab'
owner: root
group: root
mode: '0400'
- name: Install reprepro
package:
name:
- reprepro
state: present
- name: Ensure config directory
file:
path: /etc/reprepro
state: directory
owner: root
group: root
mode: '0755'
- name: Ensure key storage
file:
path: /etc/reprepro-gpg-keys
state: directory
owner: root
group: root
mode: '0755'
- name: Ensure log directory
file:
path: /var/log/reprepro
state: directory
owner: root
group: root
mode: '0755'
- name: Ensure run directory
file:
path: /var/run/reprepro
state: directory
owner: root
group: root
mode: '0755'
- name: Rotate logfiles
include_role:
name: logrotate
vars:
logrotate_file_name: '/var/log/reprepro/*.log'
logrotate_config_file_name: 'reprepro'
logrotate_frequency: 'weekly'
- name: Install mirror script
copy:
src: reprepro-mirror-update
dest: /usr/local/bin/
owner: root
group: root
mode: 0755
- name: Debian
include_tasks: debian.yaml
- name: Debian Ceph
include_tasks: debian-ceph.yaml
- name: Debian security
include_tasks: debian-security.yaml
- name: Docker
include_tasks: docker.yaml
- name: Puppetlabs
include_tasks: puppetlabs.yaml
- name: Ubuntu
include_tasks: ubuntu.yaml
- name: Ubuntu Cloud Archive
include_tasks: ubuntu-cloud-archive.yaml
- name: Ubuntu Ports
include_tasks: ubuntu-ports.yaml