Add possibility to overwrite nginx public repo
For Centos, we use by default public repo for nginx. You can change this behaviour with these role-wide variables: - repo_centos_nginx_mirror - repo_centos_nginx_key Or with these osa-wide variables: - centos_nginx_mirror - centos_nginx_key Change-Id: I8dcb3c97e9593877a4a420bd32b50ae29d9d311c
This commit is contained in:
parent
75e8d23116
commit
bd8a24716c
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user