diff --git a/ansible.cfg b/ansible.cfg index d8c21852b..8ec730b25 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -36,6 +36,13 @@ nocows = True # Disable deprecation warnings, more readable output deprecation_warnings = False +#enable global vars +vars_plugins_enabled = arista.avd.global_vars, host_group_vars + +#define global vars path +[vars_global_vars] +paths = ../../global_vars + [paramiko_connection] # Automatically add the keys of target hosts to known hosts host_key_auto_add = True diff --git a/playbooks/build.yml b/playbooks/build.yml index 602865c90..958d097b7 100644 --- a/playbooks/build.yml +++ b/playbooks/build.yml @@ -5,11 +5,6 @@ tasks: - - name: Import Global Vars - ansible.builtin.include_vars: "{{ item }}" - with_items: - - "../global_vars/global_dc_vars.yml" - - name: Generate Structured Variables per Device ansible.builtin.import_role: name: arista.avd.eos_designs diff --git a/playbooks/cvp1.yml b/playbooks/cvp1.yml index a953f30d7..27ef13ff8 100644 --- a/playbooks/cvp1.yml +++ b/playbooks/cvp1.yml @@ -5,11 +5,6 @@ tasks: - - name: Import Global Vars - ansible.builtin.include_vars: "{{ item }}" - with_items: - - "../global_vars/global_dc_vars.yml" - - name: Generate Intended Config and Documentation ansible.builtin.import_role: name: arista.avd.eos_config_deploy_cvp diff --git a/playbooks/cvp2.yml b/playbooks/cvp2.yml index 45465de71..96c244631 100644 --- a/playbooks/cvp2.yml +++ b/playbooks/cvp2.yml @@ -5,11 +5,6 @@ tasks: - - name: Import Global Vars - ansible.builtin.include_vars: "{{ item }}" - with_items: - - "../global_vars/global_dc_vars.yml" - - name: Generate Intended Config and Documentation ansible.builtin.import_role: name: arista.avd.eos_config_deploy_cvp diff --git a/playbooks/deploy.yml b/playbooks/deploy.yml index 657c9721e..a0a06322d 100644 --- a/playbooks/deploy.yml +++ b/playbooks/deploy.yml @@ -5,11 +5,6 @@ tasks: - - name: Import Global Vars - ansible.builtin.include_vars: "{{ item }}" - with_items: - - "../global_vars/global_dc_vars.yml" - - name: Deploy Configuration to Device ansible.builtin.import_role: name: arista.avd.eos_config_deploy_eapi