You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This structure creates two things in Ansible, a group called `ndfc` and a host called `nac-ndfc1:`. These are tied back to the directory structure of the repository that contains two folders in the top directory:
@@ -209,7 +209,7 @@ The collection is **pre-built** to utilize the `group_vars` and `host_vars` matc
209
209
210
210
#### Step 1 - Update the Inventory File
211
211
212
-
In the provided `inventory.yaml` file on the root directory, update the `ansible_host` variable to point to your NDFC controller by replacing `10.X.X.X` with the IP address of the NDFC controller.
212
+
In the provided `inventory.yaml` file on the root directory, update the `ansible_host` variable to point to your NDFC controller by replacing `"{{ lookup('ansible.builtin.env', 'ND_HOST') }}"` with the IP address of the NDFC controller or setting the ```ND_HOST``` environment variable as described in Step 3.
213
213
214
214
215
215
#### Step 2 - Configure Ansible Connection File
@@ -246,12 +246,14 @@ The usage of [Ansible vault](https://docs.ansible.com/ansible/latest/vault_guide
246
246
The environment variables are set in the shell that is going to execute the playbook. The environment variables are configured via the `export` command in the shell (bash). Using this template set the environment variables to the correct credentials for the NDFC controller and the devices in the inventory on your topology.
247
247
248
248
```bash
249
-
# These are the credentials for
250
-
export ansible_user=admin
251
-
export ansible_password=Admin_123
249
+
# These are the credentials for ND/NDFC
250
+
export ND_HOST=10.15.0.11
251
+
export ND_DOMAIN=local
252
+
export ND_USERNAME=admin
253
+
export ND_PASSWORD=Admin_123
252
254
# These are the credentials for the devices in the inventory
253
-
export ndfc_switch_username=admin
254
-
export ndfc_switch_password=Admin_123
255
+
export NDFC_SW_USERNAME=admin
256
+
export NDFC_SW_PASSWORD=Admin_123
255
257
```
256
258
257
259
The following quickstart repository is available to provide a step by step guide for using this collection
0 commit comments