summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/dnac/playbooks/device_provision.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
commit38b7c80217c4e72b1d8988eb1e60bb6e77334114 (patch)
tree356e9fd3762877d07cde52d21e77070aeff7e789 /ansible_collections/cisco/dnac/playbooks/device_provision.yml
parentAdding upstream version 7.7.0+dfsg. (diff)
downloadansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.tar.xz
ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.zip
Adding upstream version 9.4.0+dfsg.upstream/9.4.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/dnac/playbooks/device_provision.yml')
-rw-r--r--ansible_collections/cisco/dnac/playbooks/device_provision.yml37
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