aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/yum.yml
blob: 9f93b8f518e5970e8d65e34a22f9544952ebf24f (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
- name: configure yum mirrors
  hosts: yum_mirrors
  tags: yum
  roles:
    - role: common
      tags: common

    - role: yum_mirror

    - 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 mirror for local packages
  hosts: yum_mirrors
  tags: yum
  roles:
    - role: yum_disable_default_repos

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

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