Rename mirror/reportmirror to reportmirror
This commit is contained in:
parent
e2c59bc220
commit
b7a3415352
5 changed files with 11 additions and 11 deletions
37
roles/reportmirror/tasks/main.yml
Normal file
37
roles/reportmirror/tasks/main.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
- name: Install python3
|
||||
ansible.builtin.package:
|
||||
name: python3
|
||||
state: installed
|
||||
|
||||
- name: Copy repportmirror files
|
||||
ansible.builtin.git:
|
||||
dest: /usr/local/src/report_mirror
|
||||
repo: https://github.com/fedora-infra/mirrormanager2.git
|
||||
update: true
|
||||
version: master
|
||||
|
||||
- name: Install reportmirror script
|
||||
ansible.builtin.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
|
||||
ansible.builtin.file:
|
||||
dest: /etc/mirrormanager-client
|
||||
state: directory
|
||||
mode: "0750"
|
||||
owner: root
|
||||
group: mirror
|
||||
|
||||
- name: Create reportmirror config from template
|
||||
ansible.builtin.template:
|
||||
dest: /etc/mirrormanager-client/report_mirror.conf
|
||||
src: report_mirror.conf.j2
|
||||
mode: "0640"
|
||||
owner: root
|
||||
group: mirror
|
Loading…
Add table
Add a link
Reference in a new issue