1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix eos_config config test (#26679)

We needed to re-register show-running config before doing the
idempotency test.
This commit is contained in:
Ricardo Carrillo Cruz 2017-07-12 10:38:25 +02:00 committed by GitHub
parent 4006b5d18f
commit 9f2d58f7b4

View file

@ -25,6 +25,12 @@
- "result.changed == true" - "result.changed == true"
- "'hostname foo' in result.updates" - "'hostname foo' in result.updates"
- name: get current running-config
eos_command:
commands: show running-config
provider: "{{ cli }}"
register: config
- name: configure hostname again - name: configure hostname again
eos_config: eos_config:
lines: hostname foo lines: hostname foo