Fix installation of nginx on ubuntu

pull/194/head
Klaas Demter 4 years ago committed by GitHub
parent 4400af5065
commit 15e0e9da5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      tasks/setup-Ubuntu.yml

@ -7,9 +7,14 @@
register: nginx_ppa_added
when: nginx_ppa_use | bool
- name: Ensure nginx will reinstall if the PPA was just added.
- name: Ensure nginx will reinstall if the PPA was just added or modified.
apt:
name: nginx
state: absent
when: nginx_ppa_added.changed
tags: ['skip_ansible_lint']
- name: Install nginx.
apt:
name: nginx
state: present