mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2024-11-04 08:50:21 +01:00
15 lines
323 B
YAML
15 lines
323 B
YAML
---
|
|
- name: Add PPA for Nginx.
|
|
apt_repository:
|
|
repo: 'ppa:nginx/{{ nginx_ppa_version }}'
|
|
state: present
|
|
update_cache: yes
|
|
register: nginx_ppa_added
|
|
when: nginx_ppa_use
|
|
|
|
- name: Ensure nginx will reinstall if the PPA was just added.
|
|
apt:
|
|
name: nginx
|
|
state: absent
|
|
when: nginx_ppa_added.changed
|