diff options
Diffstat (limited to 'ansible_collections/cisco/dnac/playbooks/device_provision.yml')
-rw-r--r-- | ansible_collections/cisco/dnac/playbooks/device_provision.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ansible_collections/cisco/dnac/playbooks/device_provision.yml b/ansible_collections/cisco/dnac/playbooks/device_provision.yml new file mode 100644 index 000000000..fe3efe919 --- /dev/null +++ b/ansible_collections/cisco/dnac/playbooks/device_provision.yml @@ -0,0 +1,37 @@ +--- +- name: Provision and Re-provision wired and wireless devices + hosts: localhost + connection: local + gather_facts: no + + vars_files: + - "{{ CLUSTERFILE }}" + + vars: + dnac_login: &dnac_login + dnac_host: "{{ dnac_host }}" + dnac_username: "{{ dnac_username }}" + dnac_password: "{{ dnac_password }}" + dnac_verify: "{{ dnac_verify }}" + dnac_port: "{{ dnac_port }}" + dnac_version: "{{ dnac_version }}" + dnac_debug: "{{ dnac_debug }}" + + tasks: + - name: Provision a wired device to a site + cisco.dnac.provision_intent: + <<: *dnac_login + dnac_log: True + state: merged + config: + - site_name: Global/USA/San Francisco/BGL_18 + management_ip_address: 204.1.2.2 + + + - name: Unprovision a wired device to a site + cisco.dnac.provision_intent: + <<: *dnac_login + dnac_log: True + state: deleted + config: + - management_ip_address: 204.1.2.2 |