Skip to content
41 changes: 41 additions & 0 deletions examples/nslaslicense_offline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
- name: Sample nslaslicense_offline playbook
hosts: demo_netscalers
gather_facts: false
tasks:
- name: Apply offline LAS license to NetScaler ADC
delegate_to: localhost
netscaler.adc.nslaslicense_offline:
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
nitro_protocol: "{{ nitro_protocol | default('https') }}"
validate_certs: false
request_pem: CNS_V10000_SERVER
request_ed: Premium
is_fips: false
las_secrets_json: /path/to/las_secrets.json
register: lic_result

- name: Display license result
ansible.builtin.debug:
var: lic_result

- name: Apply offline LAS license with host key checking disabled (trusted isolated environment)
delegate_to: localhost
netscaler.adc.nslaslicense_offline:
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
nitro_protocol: "{{ nitro_protocol | default('https') }}"
validate_certs: false
host_key_checking: false
request_pem: CNS_V10000_SERVER
request_ed: Premium
is_fips: false
las_secrets_json: /path/to/las_secrets.json
register: lic_result_no_hkc

- name: Display license result (no host key checking)
ansible.builtin.debug:
var: lic_result_no_hkc
Loading
Loading