forked from infra/ansible
EPEL minor branching: create symlinks as apache user
epel/releng#89 Signed-off-by: Carl George <carlwgeorge@gmail.com>
This commit is contained in:
parent
4051930fa7
commit
59eddc51a8
1 changed files with 15 additions and 0 deletions
|
|
@ -19,22 +19,31 @@
|
|||
ansible.builtin.stat:
|
||||
path: /mnt/koji/compose/updates/epel{{ epel_major }}.{{ epel_branched_minor }}
|
||||
register: compose_stat
|
||||
|
||||
- name: Create compose symlink
|
||||
become: yes
|
||||
ansible.builtin.file:
|
||||
src: "{{ compose_stat.stat.lnk_target }}"
|
||||
dest: "/mnt/koji/compose/updates/epel{{ epel_major }}.{{ epel_minor }}"
|
||||
state: link
|
||||
follow: false
|
||||
owner: apache
|
||||
group: apache
|
||||
|
||||
- name: Determine current testing compose
|
||||
ansible.builtin.stat:
|
||||
path: /mnt/koji/compose/updates/epel{{ epel_major }}.{{ epel_branched_minor }}-testing
|
||||
register: compose_testing_stat
|
||||
|
||||
- name: Create testing compose symlink
|
||||
become: yes
|
||||
ansible.builtin.file:
|
||||
src: "{{ compose_testing_stat.stat.lnk_target }}"
|
||||
dest: "/mnt/koji/compose/updates/epel{{ epel_major }}.{{ epel_minor }}-testing"
|
||||
state: link
|
||||
follow: false
|
||||
owner: apache
|
||||
group: apache
|
||||
|
||||
- name: Set major-only compose symlink
|
||||
become: yes
|
||||
|
|
@ -42,6 +51,9 @@
|
|||
src: epel{{ epel_major }}.{{ epel_minor }}
|
||||
dest: /mnt/koji/compose/updates/epel{{ epel_major }}
|
||||
state: link
|
||||
follow: false
|
||||
owner: apache
|
||||
group: apache
|
||||
|
||||
- name: Set major-only testing compose symlink
|
||||
become: yes
|
||||
|
|
@ -49,6 +61,9 @@
|
|||
src: epel{{ epel_major }}.{{ epel_minor }}-testing
|
||||
dest: /mnt/koji/compose/updates/epel{{ epel_major }}-testing
|
||||
state: link
|
||||
follow: false
|
||||
owner: apache
|
||||
group: apache
|
||||
|
||||
- name: Create repos for packages
|
||||
block:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue