summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/dnac/playbooks/global_credentials.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/cisco/dnac/playbooks/global_credentials.yml
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 000000000..c485e5d20
--- /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