From 7e718dcc8f417beb5c4f787c526e2831d6ad766b Mon Sep 17 00:00:00 2001 From: Roger Gomez Date: Tue, 5 Aug 2025 16:28:58 -0400 Subject: [PATCH] Update README.md to use environment variable for network OS and add domain export --- README.md | 5 ++++- requirements.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 18707bf..57f1fdf 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ ansible_connection: ansible.netcommon.httpapi ansible_httpapi_port: 443 ansible_httpapi_use_ssl: true ansible_httpapi_validate_certs: false -ansible_network_os: cisco.dcnm.dcnm +ansible_network_os: "{{ lookup('env', 'ND_DOMAIN') }}" # NDFC API Credentials ansible_user: "{{ lookup('env', 'ND_USERNAME') }}" ansible_password: "{{ lookup('env', 'ND_PASSWORD') }}" @@ -183,6 +183,9 @@ export ND_PASSWORD=Admin_123 # These are the credentials for the devices in the inventory export NDFC_SW_USERNAME=admin export NDFC_SW_PASSWORD=Admin_123 +export ND_DOMAIN=cisco.dcnm.dcnm +# If no domain use local +# export ND_DOMAIN=local ``` ## Understanding our Ansible roles diff --git a/requirements.txt b/requirements.txt index 51431a2..69dc72e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ macaddress netaddr packaging==24.1 requests +iac-validate>=0.2.7 \ No newline at end of file