summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/dnac/playbooks/global_credentials.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/cisco/dnac/playbooks/global_credentials.yml')
-rw-r--r--ansible_collections/cisco/dnac/playbooks/global_credentials.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/ansible_collections/cisco/dnac/playbooks/global_credentials.yml b/ansible_collections/cisco/dnac/playbooks/global_credentials.yml
new file mode 100644
index 00000000..c485e5d2
--- /dev/null
+++ b/ansible_collections/cisco/dnac/playbooks/global_credentials.yml
@@ -0,0 +1,36 @@
+---
+- hosts: dnac_servers
+ vars_files:
+ - credentials.yml
+ gather_facts: false
+ tasks:
+ - name: Create CLI Credential
+ cisco.dnac.cli_credential:
+ 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 }}"
+ state: present
+ validate_response_schema: false
+ enablePassword: C2sco456!
+ username: Test2
+ password: C2sco456!
+ description: Test2
+
+ - name: Create SNMPV3 Credential
+ cisco.dnac.snmpv3_credential:
+ 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 }}"
+ state: present
+ validate_response_schema: false
+ username: user2
+ snmpMode: NOAUTHNOPRIV
+ description: user2 cred