Add private repository

pull/72/head
Veros Kaplan 8 years ago committed by Veros Kaplan
parent eb2b1a5753
commit 2a83d9436a
  1. 3
      defaults/main.yml
  2. 6
      tasks/setup-Ubuntu.yml

@ -6,6 +6,9 @@ nginx_default_release: ""
nginx_ppa_use: false
nginx_ppa_version: stable
# Use custom nginx repo
#nginx_custom_apt_repo: "https://nginx.example.org/nginx/ xenial nginx"
# The name of the nginx apt/yum package to install.
nginx_package_name: "nginx"

@ -7,6 +7,12 @@
register: nginx_ppa_added
when: nginx_ppa_use
- name: Add custom repo for nginx
apt_repository:
repo: '{{ nginx_custom_apt_repo }}'
state: present
when: nginx_custom_apt_repo is defined
- name: Ensure nginx will reinstall if the PPA was just added.
apt:
name: nginx