Fix multiple task issue

pull/124/head
ybrun 7 years ago
parent f946b0eaa5
commit 82c21a9c77
  1. 12
      tasks/main.yml

@ -8,14 +8,16 @@
nginx_user: "{{ __nginx_user }}" nginx_user: "{{ __nginx_user }}"
when: nginx_user is not defined when: nginx_user is not defined
- name: Ensure nginx repository is present - name: Ensure apt key is present for nginx repository
apt_key: apt_key:
url: 'http://nginx.org/keys/nginx_signing.key' url: http://nginx.org/keys/nginx_signing.key
state: 'present' state: present
- name: Ensure nginx apt repository is present
apt_repository: apt_repository:
repo: 'deb http://nginx.org/packages/debian/ jessie nginx' repo: deb http://nginx.org/packages/debian/ jessie nginx
state: present state: present
filename: 'nginx' filename: nginx
update_cache: yes update_cache: yes
become: yes become: yes