diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:23:43 -0500 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:52:13 -0500 |
commit | 0261e875679f1bf63c8d689da7fc7e014597885d (patch) | |
tree | 3f19cd74a0c1070944f75437f30b098d6ef2ffcb /playbooks/yum.yml | |
download | selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.tar.gz selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.zip |
initial commit
Diffstat (limited to 'playbooks/yum.yml')
-rw-r--r-- | playbooks/yum.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/playbooks/yum.yml b/playbooks/yum.yml new file mode 100644 index 0000000..e0c829f --- /dev/null +++ b/playbooks/yum.yml @@ -0,0 +1,33 @@ +- import_playbook: common.yml + vars: + hostlist: yum_mirrors + +- name: configure yum mirrors + hosts: yum_mirrors + tags: yum + roles: + - 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 |