Re: [ansible-project] Queries regarding IOS_CONFIG module

2017-10-12 Thread Peter Sprygada
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 
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"  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,  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 ansible-project+unsubscr...@googlegroups.com.
>>
>> To post to this group, send email to ansible-project@googlegroups.com.
>> 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
>> 
>> .
>> 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
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> 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
> 
> .
>
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CAP0cdg%3Daz47ihuCZHCp_am_
> WACxgOWFCFFw2V0H6iEL9GKEo2g%40mail.gmail.com
> 
> .
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.


Re: [ansible-project] Queries regarding IOS_CONFIG module

2017-10-12 Thread Harkanwal Johar
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"  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,  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 ansible-project+unsubscr...@googlegroups.com.
>
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/ansible-project/c162dc08-c2e1-4df9-9c7d-007ae2b03cf6%
> 40googlegroups.com
> 
> .
> 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/
topic/ansible-project/aCnT0q18Tl4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAP0cdg%3Daz47ihuCZHCp_am_WACxgOWFCFFw2V0H6iEL9GKEo2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Queries regarding IOS_CONFIG module

2017-10-12 Thread Peter Sprygada
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,  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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/c162dc08-c2e1-4df9-9c7d-007ae2b03cf6%40googlegroups.
> com
> 
> .
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.


[ansible-project] Queries regarding IOS_CONFIG module

2017-10-12 Thread joharharkanwal
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c162dc08-c2e1-4df9-9c7d-007ae2b03cf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.