You've already forked repo-almalinux
Initial Import
This commit is contained in:
87
tasks/main.yml
Normal file
87
tasks/main.yml
Normal file
@@ -0,0 +1,87 @@
|
||||
---
|
||||
- name: configure repository settings
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- src: almalinux.repo.j2
|
||||
dest: /etc/yum.repos.d/almalinux.repo
|
||||
- src: almalinux-ha.repo.j2
|
||||
dest: /etc/yum.repos.d/almalinux-ha.repo
|
||||
when: ansible_distribution == "AlmaLinux"
|
||||
|
||||
# - name: ensure mirrorlist options removed (almalinux)
|
||||
# ini_file:
|
||||
# path: /etc/yum.repos.d/almalinux.repo
|
||||
# section: "{{ item }}"
|
||||
# option: mirrorlist
|
||||
# state: absent
|
||||
# with_items:
|
||||
# - baseos
|
||||
# - appstream
|
||||
# - powertools
|
||||
# - extras
|
||||
# - baseos-source
|
||||
# - appstream-source
|
||||
# - powertools-source
|
||||
# - extras-source
|
||||
# - baseos-debuginfo
|
||||
# - appstream-debuginfo
|
||||
# - powertools-debuginfo
|
||||
# - extras-debuginfo
|
||||
# - name: ensure mirrorlist options removed (almalinux-ha)
|
||||
# ini_file:
|
||||
# path: /etc/yum.repos.d/almalinux-ha.repo
|
||||
# section: "{{ item }}"
|
||||
# option: mirrorlist
|
||||
# state: absent
|
||||
# with_items:
|
||||
# - ha
|
||||
# - ha-source
|
||||
# - ha-debuginfo
|
||||
|
||||
# - name: ensure baseurl is set (almalinux)
|
||||
# ini_file:
|
||||
# path: /etc/yum.repos.d/almalinux.repo
|
||||
# section: "{{ item.section }}"
|
||||
# option: baseurl
|
||||
# value: "{{ almalinux_mirror_url }}/$releasever/{{ item.directory }}/$basearch/"
|
||||
# state: present
|
||||
# with_items:
|
||||
# - section: baseos
|
||||
# directory: BaseOS
|
||||
# - section: appstream
|
||||
# directory: AppStream
|
||||
# - section: powertools
|
||||
# directory: PowerTools
|
||||
# - section: extras
|
||||
# directory: extras
|
||||
# - section: baseos-source
|
||||
# directory: BaseOS/Source
|
||||
# - section: appstream-source
|
||||
# directory: AppStream/Source
|
||||
# - section: powertools-source
|
||||
# directory: PowerTools/Source
|
||||
# - section: extras-source
|
||||
# directory: extras/Source
|
||||
# - section: baseos-debuginfo
|
||||
# directory: BaseOS/debug
|
||||
# - section: appstream-debuginfo
|
||||
# directory: AppStream/debug
|
||||
# - section: powertools-debuginfo
|
||||
# directory: PowerTools/debug
|
||||
# - section: extras-debuginfo
|
||||
# directory: extras/debug
|
||||
|
||||
# # - name: ensure baseurl is set (almalinux-ha)
|
||||
# # ini_file:
|
||||
# # path: /etc/yum.repos.d/almalinux.repo
|
||||
# # section: "{{ item.section }}"
|
||||
# # option: baseurl
|
||||
# # value: "{{ almalinux_mirror_url }}/$releasever/{{ item.directory }}/$basearch/"
|
||||
# # state: present
|
||||
# # with_items:
|
||||
# # - section: ha
|
||||
# # directory: HighAvailability/
|
||||
# # - section: ha-source
|
||||
# # - section: ha-debuginfo
|
||||
Reference in New Issue
Block a user