3b6c744166
This fixes a bug when only the license is deleted, making system updates fail since the NGINX Plus repository is still within the repositories list yet there is no license to authenticate to the repository
12 lines
468 B
YAML
12 lines
468 B
YAML
---
|
|
- name: "(Setup: SUSE) Setup NGINX Plus Certificate and License Keys"
|
|
assemble:
|
|
src: /etc/ssl/nginx
|
|
dest: /etc/ssl/nginx/nginx-repo-bundle.crt
|
|
|
|
- name: "(Setup: SUSE) Setup NGINX Plus Repository"
|
|
zypper_repository:
|
|
name: nginx-plus
|
|
repo: "https://plus-pkgs.nginx.com/sles/{{ ansible_distribution_major_version }}?ssl_clientcert=/etc/ssl/nginx/nginx-repo-bundle.crt&ssl_verify=host"
|
|
state: "{{ nginx_license_status | default ('present') }}"
|