3a63b9acf6
Co-authored-by: Jurgen Verhasselt <hello@sjugge.be> Co-authored-by: Jurgen Verhasselt <sjugge@inuits.eu>
18 lines
709 B
YAML
18 lines
709 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') }}"
|
|
when: nginx_manage_repo | bool
|
|
|
|
- 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
|