Hi Harkanwal,

1. example below

ios_config:
  lines:
    - logging ...
    - logging size ..
  parents:
    - archive
    - log config

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

3. the configuration lines in ios_config must match the same as the running
config, do not use shortened commands or abbreviations.

On Thu, Oct 12, 2017 at 7:12 AM, <[email protected]> wrote:

> 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
>
>
> 2.  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.
>
> 3.  How to make configuration idempotent using
>
>
> Best Regards,
>
> Harkanwal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/c162dc08-c2e1-4df9-9c7d-007ae2b03cf6%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/c162dc08-c2e1-4df9-9c7d-007ae2b03cf6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKEs6aem-jTG_0EhyrP%3D5RZNwmtXmP%2BihfffNzHzipjR1aQFCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to