diff --git a/tasks/main.yml b/tasks/main.yml index 6c420fe..382b940 100644 --- a/tasks/main.yml +++ b/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'