From 6abd813560a91b331202be0f961f25b8029674c7 Mon Sep 17 00:00:00 2001 From: Philip DiLeo Date: Wed, 4 May 2016 14:04:36 -0400 Subject: [PATCH] Update role --- tasks/main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ad8788a..bce91f5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,17 +13,19 @@ use_ssl={{ use_ssl|default(omit) }} username={{ username|default(omit) }} register: output - when: mlag is defined + no_log: '{{ no_log|default(true) }}' + when: _eos_config is not defined - set_fact: - base_config='{{ output.result[0] }}' - when: mlag is defined + _eos_config='{{ output.stdout[0] }}' + no_log: "{{ no_log|default(true) }}" + when: _eos_config is not defined - name: Arista MLAG (Base Configuration) eos_template: src=base.j2 include_defaults=True - config={{ base_config|default(omit) }} + config={{ _eos_config|default(omit) }} provider={{ provider|default(omit) }} auth_pass={{ auth_pass|default(omit) }} authorize={{ authorize|default(omit) }} @@ -39,7 +41,7 @@ eos_template: src=peer_links.j2 include_defaults=True - config={{ base_config|default(omit) }} + config={{ _eos_config|default(omit) }} provider={{ provider|default(omit) }} auth_pass={{ auth_pass|default(omit) }} authorize={{ authorize|default(omit) }}