Merge pull request #43 from nginxinc/(feature)/delete-license

Add option to delete license after installing NGINX Plus
This commit is contained in:
Alessandro Fael Garcia 2018-08-01 13:01:08 -07:00 committed by GitHub
commit 85ed933a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -66,6 +66,10 @@ license:
certificate: license/nginx-repo.crt
key: license/nginx-repo.key
# Delete NGINX Plus license after installation for security purposes.
# Default is true.
delete_license: true
# Enable uploading NGINX configuration files to your system.
# Default for uploading files is false.
# Default location of files is the files folder within the NGINX Ansible role.

View File

@ -0,0 +1,5 @@
---
- name: "(All OSs) Delete NGINX Plus License"
file:
path: /etc/ssl/nginx
state: absent

View File

@ -18,3 +18,6 @@
name: nginx-plus
state: present
notify: "(Handler: All OSs) Start NGINX"
- import_tasks: delete-license.yml
when: delete_license