Skip to content

Commit f98f3a4

Browse files
committed
updating readme, adding gpg keys for app protect repos
1 parent d9beb7e commit f98f3a4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ Dependencies
8888

8989
- Since this role uses the [package_facts](https://docs.ansible.com/ansible/latest/modules/package_facts_module.html) module, on debian-based systems the `python-apt` package must be installed on targeted hosts.
9090

91-
- NGINX+ R20-R22 must already be installed on the target system
91+
- If NGINX+ is *not* already installed on the system, this role will install the version of NGINX+ that is dependent on the version of NGINX App Protect set with the `app_protect_version` variable. If none is specified, the latest version of NGINX+ and NGINX App Protect will be installed.
92+
93+
- When using the `app_protect_version` variable, a specific version of NGINX+ must already be installed on the target system.
9294

9395
Example Playbook
9496
----------------

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
- name: Debug app_protect_state
2525
debug:
26-
msg: "app_protect_state {{ app_protect_state }}"
26+
msg: "Desired app_protect_state {{ app_protect_state }}"
2727

2828
- name: Abort if the OS/version combination is not supported
2929
fail:

tasks/setup-redhat-repos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
sslclientkey: "/etc/ssl/nginx/{{ nginx_license.key | basename }}"
3333
enabled: true
3434
gpgcheck: true
35+
gpgkey: https://cs.nginx.com/static/keys/app-protect.key
3536
state: "{{ nginx_license_status | default ('present') }}"
3637

3738
- name: "(Setup: CentOS/RedHat/Oracle Linux) Setup NGINX App Protect Signatures Repository"
@@ -44,5 +45,6 @@
4445
sslclientkey: "/etc/ssl/nginx/{{ nginx_license.key | basename }}"
4546
enabled: true
4647
gpgcheck: true
48+
gpgkey: https://cs.nginx.com/static/keys/app-protect.key
4749
state: "{{ nginx_license_status | default ('present') }}"
4850
when: ansible_distribution != "Amazon"

0 commit comments

Comments
 (0)