Merge "Add possibility to overwrite nginx public repo"

This commit is contained in:
Zuul 2019-11-08 03:03:30 +00:00 committed by Gerrit Code Review
commit c559a1ab25
3 changed files with 6 additions and 4 deletions

View File

@ -27,6 +27,10 @@ cache_timeout: 600
repo_centos_epel_mirror: "{{ centos_epel_mirror | default('http://download.fedoraproject.org/pub/epel') }}"
repo_centos_epel_key: "{{ centos_epel_key | default('http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7') }}"
## Centos NGINX repository options
repo_centos_nginx_mirror: "{{ centos_nginx_mirror | default('http://nginx.org/packages/centos/7/$basearch/') }}"
repo_centos_nginx_key: "{{ centos_nginx_key | default('http://nginx.org/keys/nginx_signing.key') }}"
# Set the package install state for distribution and pip packages
# Options are 'present' and 'latest'
repo_server_package_state: "latest"

View File

@ -44,8 +44,8 @@
yum_repository:
name: nginx
description: 'nginx repo'
baseurl: "{{ repo_nginx_repo }}"
gpgkey: "{{ repo_nginx_gpg_key }}"
baseurl: "{{ repo_centos_nginx_mirror }}"
gpgkey: "{{ repo_centos_nginx_key }}"
when:
- ansible_pkg_mgr in ['yum', 'dnf']
register: add_nginx_repo

View File

@ -15,8 +15,6 @@
systemd_utils_prefix: "/lib/systemd"
repo_nginx_repo: http://nginx.org/packages/centos/7/$basearch/
repo_nginx_gpg_key: http://nginx.org/keys/nginx_signing.key
repo_nginx_pid: /run/nginx.pid
git_daemon_path: /usr/libexec/git-core/git-daemon