mirror: Install report_mirror script from git
This commit is contained in:
parent
e2b18c7f36
commit
142025eafc
1 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue