17 lines
676 B
YAML
17 lines
676 B
YAML
---
|
|
- name: (Alpine Linux) {{ nginx_license_status is defined | ternary('Remove', 'Configure') }} NGINX Plus repository
|
|
lineinfile:
|
|
path: /etc/apk/repositories
|
|
insertafter: EOF
|
|
line: "{{ nginx_repository | default(nginx_plus_default_repository_alpine) }}"
|
|
state: "{{ nginx_license_status | default ('present') }}"
|
|
|
|
- name: (Alpine Linux) Install NGINX Plus
|
|
apk:
|
|
name: "nginx-plus{{ nginx_version | default('') }}"
|
|
repository: "{{ nginx_repository | default(nginx_plus_default_repository_alpine) }}"
|
|
state: "{{ nginx_state }}"
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
|
when: nginx_license_status is not defined
|
|
notify: (Handler) Run NGINX
|