Skip to content

Commit

Permalink
Merge pull request #5 from arista-eosplus/update-keys
Browse files Browse the repository at this point in the history
Update role
  • Loading branch information
phil-dileo committed May 4, 2016
2 parents 6ff626e + 6abd813 commit 07e2e20
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand All @@ -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) }}
Expand Down

0 comments on commit 07e2e20

Please sign in to comment.