From a7c3cb2f398d418b38e29c07f253fba08b059d43 Mon Sep 17 00:00:00 2001 From: robertcsapo Date: Sat, 12 Jun 2021 19:34:56 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6564ff91f3..3910da7850 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,12 @@ dnac_version: 2.1.1 # optional, defaults to 2.1.1 dnac_verify: False # optional, defaults to True ``` +Create a ```hosts``` file that uses ```[dnac_servers]``` with your Cisco DNA Center Settings: +``` +[dnac_servers] +dnac_server +``` + Then, create a playbook `myplaybook.yml` referencing the variables in your credentials.yml file and specifying the full namespace path to the module, plugin and/or role: ``` - hosts: dnac_servers From 48e76c399a8fae850c6e3e50e62c6e4f7f09a117 Mon Sep 17 00:00:00 2001 From: robertcsapo Date: Sat, 12 Jun 2021 19:43:57 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3910da7850..d14099931d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This collection has been tested and supports Cisco DNA Center 2.1.1. - Python >= 3.5, as the DNA Center SDK doesn't support Python version 2.x ## Install -Ansible must be installed +Ansible must be installed ([Install guide](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)) ``` sudo pip install ansible ``` @@ -24,12 +24,12 @@ DNA Center SDK must be installed sudo pip install dnacentersdk ``` -Install the collection +Install the collection ([Galaxy link](https://galaxy.ansible.com/cisco/dnac)) ``` ansible-galaxy collection install cisco.dnac ``` ## Use -First, define a `credentials.yml` file where you specify your DNA Center credentials as ansible variables: +First, define a `credentials.yml` ([example](playbooks/credentials.template)) file where you specify your DNA Center credentials as ansible variables: ``` --- dnac_host: @@ -40,13 +40,13 @@ dnac_version: 2.1.1 # optional, defaults to 2.1.1 dnac_verify: False # optional, defaults to True ``` -Create a ```hosts``` file that uses ```[dnac_servers]``` with your Cisco DNA Center Settings: +Create a `hosts` ([example](playbooks/hosts)) file that uses `[dnac_servers]` with your Cisco DNA Center Settings: ``` [dnac_servers] dnac_server ``` -Then, create a playbook `myplaybook.yml` referencing the variables in your credentials.yml file and specifying the full namespace path to the module, plugin and/or role: +Then, create a playbook `myplaybook.yml` ([example](playbooks/tag.yml])) referencing the variables in your credentials.yml file and specifying the full namespace path to the module, plugin and/or role: ``` - hosts: dnac_servers vars_files: @@ -68,7 +68,7 @@ Execute the playbook: ``` ansible-playbook -i hosts myplaybook.yml ``` -In the `playbooks` directory you can find more examples and use cases. +In the `playbooks` [directory](playbooks/) you can find more examples and use cases. ## Update From 33f776f8c0bc7113da73191c301dd1807e6b4a43 Mon Sep 17 00:00:00 2001 From: robertcsapo Date: Mon, 6 Sep 2021 15:58:05 +0000 Subject: [PATCH 3/3] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d14099931d..a9d540f1cd 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Create a `hosts` ([example](playbooks/hosts)) file that uses `[dnac_servers]` wi dnac_server ``` -Then, create a playbook `myplaybook.yml` ([example](playbooks/tag.yml])) referencing the variables in your credentials.yml file and specifying the full namespace path to the module, plugin and/or role: +Then, create a playbook `myplaybook.yml` ([example](playbooks/tag.yml)) referencing the variables in your credentials.yml file and specifying the full namespace path to the module, plugin and/or role: ``` - hosts: dnac_servers vars_files: