You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

20 lines
481 B

- name: Ensure dirmngr is installed (gnupg dependency).
name: dirmngr
state: present
- name: Add PPA for Nginx (if configured).
repo: 'ppa:nginx/{{ nginx_ppa_version }}'
state: present
update_cache: true
register: nginx_ppa_added
when: nginx_ppa_use | bool
- name: Ensure nginx will reinstall if the PPA was just added.
name: nginx
state: absent
when: nginx_ppa_added is changed
tags: ['skip_ansible_lint']