aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/yum.yml
blob: 67b3e20342570a08788fab769ad5d04b4e675a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
- name: configure yum mirrors
  hosts: yum_mirrors
  roles:
    - role: common
      tags: common

    - role: yum_mirror
      tags: yum

    - role: apache_vhost
      apache_default_vhost: yes
      apache_document_root: '{{ yum_mirror_webroot }}'
      apache_autoindex: yes
      apache_redirect_to_https: no
      tags: apache

- name: configure local package repository
  hosts: yum_mirrors
  roles:
    - role: yum_disable_default_repos
      tags: yum

    - role: yum
      yum_repositories:
        - rocky-baseos
        - rocky-appstream
        - rocky-extras
        - epel
      tags: yum

    # nagios_client has to run *after* EPEL repository has been configured.
    - role: nagios_client
      tags: nagios