make another task entry in the playbook
ios_config:
lines:
- path bootflash:...
- maximum 4
parents:
- archive
On Thu, Oct 12, 2017 at 8:36 AM, Harkanwal Johar <[email protected]>
wrote:
> 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 .
>
>
>
> On Oct 12, 2017 5:09 PM, "Peter Sprygada" <[email protected]> wrote:
>
> 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/ms
>> gid/ansible-project/c162dc08-c2e1-4df9-9c7d-007ae2b03cf6%40g
>> ooglegroups.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 a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/to
> pic/ansible-project/aCnT0q18Tl4/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ms
> gid/ansible-project/CAKEs6aem-jTG_0EhyrP%3D5RZNwmtXmP%2Bihff
> fNzHzipjR1aQFCg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKEs6aem-jTG_0EhyrP%3D5RZNwmtXmP%2BihfffNzHzipjR1aQFCg%40mail.gmail.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/CAP0cdg%3Daz47ihuCZHCp_am_
> WACxgOWFCFFw2V0H6iEL9GKEo2g%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAP0cdg%3Daz47ihuCZHCp_am_WACxgOWFCFFw2V0H6iEL9GKEo2g%40mail.gmail.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/CAKEs6aeUqgqd8YVceX0cN1Rb2X1PW4U2toWuiz%2BFm7jNGT7cqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.