From f946b0eaa53f073d916d59efdf3c0483c9baea34 Mon Sep 17 00:00:00 2001 From: ybrun Date: Wed, 12 Apr 2017 10:16:02 +0200 Subject: [PATCH] Add nginx repo in apt sources --- tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 6c420fe..3508653 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,6 +8,17 @@ nginx_user: "{{ __nginx_user }}" when: nginx_user is not defined +- name: Ensure nginx repository is present + apt_key: + url: 'http://nginx.org/keys/nginx_signing.key' + state: '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'