mirror: Install report_mirror script from git

This commit is contained in:
Timo Makinen 2020-11-12 18:57:31 +00:00
parent e2b18c7f36
commit 142025eafc

View file

@ -1,10 +1,31 @@
---
- name: install reportmirror packages
- name: install python3
package:
name: mirrormanager2-client
name: python3
state: installed
- name: copy repportmirror files
git:
dest: /usr/local/src/report_mirror
repo: https://github.com/fedora-infra/mirrormanager2.git
- name: install reportmirror script
copy:
dest: /usr/local/bin/report_mirror
src: /usr/local/src/report_mirror/client/report_mirror
mode: 0755
owner: root
group: "{{ ansible_wheel }}"
remote_src: true
- name: create reportmirror config directory
file:
dest: /etc/mirrormanager-client
state: directory
mode: 0750
owner: root
group: mirror
- name: create reportmirror config from template
template:
dest: /etc/mirrormanager-client/report_mirror.conf