# Queries regarding IOS\_CONFIG module

**URL:** <https://forum.ansible.com/t/queries-regarding-ios-config-module/25732>\
**Category:** Ansible Project\
**Created:** [October 12, 2017, 11:12am UTC](https://forum.ansible.com/t/queries-regarding-ios-config-module/25732 "2017-10-12T11:12:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joharharkanwal](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@joharharkanwal](https://forum.ansible.com/u/joharharkanwal)\
**Post date:** [October 12, 2017, 11:12am UTC](https://forum.ansible.com/t/queries-regarding-ios-config-module/25732/1 "2017-10-12T11:12:44Z")

</div>

Hello

I am aware of parents attribute while defining the configuration. I have queries

1. how to accomplish below scenario:

archive  
log config  
logging …  
logging size …  
path bootflash:zxvf/cfg  
maximum 4

1. It is possible to use same connection for multiple tasks.

Like :

- name: Configure X  
ios\_config:  
lines:
- version 12.2

provider: “{{ user\_credentials }}”

- name: Configure Y  
ios\_config:  
lines:
- login delay 50

provider: “{{ user\_credentials }}”

For above separate SSH connection.

1. How to make configuration idempotent using

Best Regards,

Harkanwal

---

<div class="post-metadata">

**Author:** ![psprygad](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@psprygad](https://forum.ansible.com/u/psprygad)\
**Post date:** [October 12, 2017, 11:38am UTC](https://forum.ansible.com/t/queries-regarding-ios-config-module/25732/2 "2017-10-12T11:38:48Z")

</div>

Hi Harkanwal,

1. example below

ios\_config:  
lines:

- logging …
- logging size …  
parents:
- archive
- log config

1. yes, it uses the same connection for multiple tasks by default

2. the configuration lines in ios\_config must match the same as the running config, do not use shortened commands or abbreviations.

---

<div class="post-metadata">

**Author:** ![joharharkanwal](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@joharharkanwal](https://forum.ansible.com/u/joharharkanwal)\
**Post date:** [October 12, 2017, 12:36pm UTC](https://forum.ansible.com/t/queries-regarding-ios-config-module/25732/3 "2017-10-12T12:36:20Z")

</div>

Thanks for reply .

Regarding first query.  
There are more commands with same level as that of log config

"

path bootflash:zxvf/cfg  
maximum 4

"  
How to incorporate these .

---

<div class="post-metadata">

**Author:** ![psprygad](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@psprygad](https://forum.ansible.com/u/psprygad)\
**Post date:** [October 12, 2017, 12:49pm UTC](https://forum.ansible.com/t/queries-regarding-ios-config-module/25732/4 "2017-10-12T12:49:17Z")

</div>

make another task entry in the playbook

ios\_config:  
lines:

- path bootflash:…
- maximum 4  
parents:
- archive
