Merge pull request #1 from ContentSquare/nginx-repo

Add nginx repo in apt sources
pull/124/head
YohanBrun 7 years ago committed by GitHub
commit fca18fc233
  1. 14
      tasks/main.yml

@ -8,6 +8,20 @@
nginx_user: "{{ __nginx_user }}"
when: nginx_user is not defined
- name: Ensure apt key is present for nginx repository
apt_key:
url: http://nginx.org/keys/nginx_signing.key
state: present
become: yes
- name: Ensure nginx apt repository is present
apt_repository:
repo: deb http://nginx.org/packages/debian/ jessie nginx
state: present
filename: nginx
update_cache: yes
become: yes
# Setup/install tasks.
- include: setup-RedHat.yml
when: ansible_os_family == 'RedHat'