Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Jonathan Lozada De La Matta
Kiran,

Your issue seems to be more an issue about connecting right to the aws vm
than ansible. Did you create the keys, downloaded them, ssh-add and
connecting as the right user? are you using -K and escalating correctly?

On Mon, Aug 13, 2018 at 2:03 AM Kiran Sonawane <
kiransonawane.nm...@gmail.com> wrote:

> I have free account so only default instances can be created but I changed
> Root Password To Root before starting so there should not be permission
> issue but it gives me an permission issue.
>
> On Sunday, August 12, 2018 at 9:39:08 PM UTC+5:30, Sakthivel G wrote:
>>
>> Hi,
>>
>> /dev/sda is reserved for root.
>>
>> Please try below...
>>
>> # Single instance with ssd gp2 root volume
>> - ec2:
>> key_name: mykey
>> group: webserver
>> instance_type: c3.medium
>> image: ami-123456
>> wait: yes
>> wait_timeout: 500
>> volumes:
>>   - device_name: /dev/xvda
>> volume_type: gp2
>> volume_size: 8
>> vpc_subnet_id: subnet-29e63245
>> assign_public_ip: yes
>> count_tag:
>>   Name: dbserver
>> exact_count: 1
>>
>>
>>
>> On Sun 12 Aug, 2018, 6:27 AM Bruce Affonso,  wrote:
>>
>>> I am trying to use the ec2_instance module to create an ec2 instance.
>>> When using the ec2 module to configure a volume one would do something like
>>> this:
>>>
>>> volumes:
>>>   - device_name: /dev/sda1
>>> volume_type: gp2
>>> volume_size: 50
>>>
>>> With ec2_instance I am not sure how to set the values.
>>>
>>> In the description it says:
>>>
>>> A list of block device mappings, by default this will always use the AMI
>>> root device so the volumes option is primarily for adding more storage.
>>> A mapping contains the (optional) keys device_name, virtual_name,
>>> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
>>> ebs.delete_on_termination.
>>>
>>> Please let me know how I would set the info from above example using the
>>> ec2_instance module.
>>>
>>> Thank you
>>>
>>> --
>>> 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-proje...@googlegroups.com.
>>> To post to this group, send email to ansible...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/82ba8db3-ed16-4230-9eaa-743a74fbebe0%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/9bf3dfbc-bf18-4b5d-9e78-b6caa75d113b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

Jonathan lozada de la matta

AUTOMATION CONSULTANT - AUTOMATION PRACTICE

Red Hat Consulting Services 

jloza...@redhat.com

-- 
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/CAFYJA%2BKxO_FTk2LSEefUbO1UCBQieN7Pos1XkXtwYN8t6fY%2BSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Please explain ec2_instance volumes config

2018-08-12 Thread Karl Auer
Hullo Kiran Sonawane.

Jonathan Lozada De La Matta was actually speaking to me about the doco
issue. But send your stuff, we'll see if we can answer your question.

Regards, K.

On Mon, Aug 13, 2018 at 4:00 PM, Kiran Sonawane <
kiransonawane.nm...@gmail.com> wrote:

> It's free version having default setting .
>
> On Sunday, August 12, 2018 at 6:27:46 AM UTC+5:30, Bruce Affonso wrote:
>>
>> I am trying to use the ec2_instance module to create an ec2 instance.
>> When using the ec2 module to configure a volume one would do something like
>> this:
>>
>> volumes:
>>   - device_name: /dev/sda1
>> volume_type: gp2
>> volume_size: 50
>>
>> With ec2_instance I am not sure how to set the values.
>>
>> In the description it says:
>>
>> A list of block device mappings, by default this will always use the AMI
>> root device so the volumes option is primarily for adding more storage.
>> A mapping contains the (optional) keys device_name, virtual_name,
>> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
>> ebs.delete_on_termination.
>>
>> Please let me know how I would set the info from above example using the
>> ec2_instance module.
>>
>> Thank you
>>
> --
> 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/99cef81b-bafa-401c-8862-03ec84ecb9ed%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Karl Auer

Email  : ka...@2pisoftware.com
Website: http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

-- 
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/CA%2B%2BT08SeHc5YscznKSw5Sr0i8LgPoJZEDsV8Zn_8Y4U-9gKrBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Kiran Sonawane
I have free account so only default instances can be created but I changed 
Root Password To Root before starting so there should not be permission 
issue but it gives me an permission issue. 

On Sunday, August 12, 2018 at 9:39:08 PM UTC+5:30, Sakthivel G wrote:
>
> Hi,
>
> /dev/sda is reserved for root.
>
> Please try below...
>
> # Single instance with ssd gp2 root volume
> - ec2:
> key_name: mykey
> group: webserver
> instance_type: c3.medium
> image: ami-123456
> wait: yes
> wait_timeout: 500
> volumes:
>   - device_name: /dev/xvda
> volume_type: gp2
> volume_size: 8
> vpc_subnet_id: subnet-29e63245
> assign_public_ip: yes
> count_tag:
>   Name: dbserver
> exact_count: 1
>
>
>
> On Sun 12 Aug, 2018, 6:27 AM Bruce Affonso,  > wrote:
>
>> I am trying to use the ec2_instance module to create an ec2 instance.  
>> When using the ec2 module to configure a volume one would do something like 
>> this:
>>
>> volumes: 
>>   - device_name: /dev/sda1 
>> volume_type: gp2 
>> volume_size: 50
>>
>> With ec2_instance I am not sure how to set the values.
>>
>> In the description it says:  
>>
>> A list of block device mappings, by default this will always use the AMI 
>> root device so the volumes option is primarily for adding more storage.
>> A mapping contains the (optional) keys device_name, virtual_name, 
>> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and 
>> ebs.delete_on_termination.
>>
>> Please let me know how I would set the info from above example using the 
>> ec2_instance module.
>>
>> Thank you
>>
>> -- 
>> 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-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/82ba8db3-ed16-4230-9eaa-743a74fbebe0%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/9bf3dfbc-bf18-4b5d-9e78-b6caa75d113b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Please explain ec2_instance volumes config

2018-08-12 Thread Kiran Sonawane
It's free version having default setting .

On Sunday, August 12, 2018 at 6:27:46 AM UTC+5:30, Bruce Affonso wrote:
>
> I am trying to use the ec2_instance module to create an ec2 instance.  
> When using the ec2 module to configure a volume one would do something like 
> this:
>
> volumes: 
>   - device_name: /dev/sda1 
> volume_type: gp2 
> volume_size: 50
>
> With ec2_instance I am not sure how to set the values.
>
> In the description it says:  
>
> A list of block device mappings, by default this will always use the AMI 
> root device so the volumes option is primarily for adding more storage.
> A mapping contains the (optional) keys device_name, virtual_name, 
> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and 
> ebs.delete_on_termination.
>
> Please let me know how I would set the info from above example using the 
> ec2_instance module.
>
> Thank you
>

-- 
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/99cef81b-bafa-401c-8862-03ec84ecb9ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Kiran Sonawane
I send you the file where error is permission denied. Please see if you can
help me.

On Sun, Aug 12, 2018 at 7:23 PM, Jonathan Lozada De La Matta <
jloza...@redhat.com> wrote:

> please submit an issue or a PR to update the docs if you have examples or
> figure out how it should be.
>
> On Sun, Aug 12, 2018 at 1:26 AM Karl Auer  wrote:
>
>> Yes, it's not clear. And is made worse by the fact that there are STILL
>> no ec2_instance examples! The examples given are ec2_instance_facts
>> examples.
>>
>> Regard, K.
>>
>>
>> On Sun, Aug 12, 2018 at 10:57 AM, Bruce Affonso 
>> wrote:
>>
>>> I am trying to use the ec2_instance module to create an ec2 instance.
>>> When using the ec2 module to configure a volume one would do something like
>>> this:
>>>
>>> volumes:
>>>   - device_name: /dev/sda1
>>> volume_type: gp2
>>> volume_size: 50
>>>
>>> With ec2_instance I am not sure how to set the values.
>>>
>>> In the description it says:
>>>
>>> A list of block device mappings, by default this will always use the AMI
>>> root device so the volumes option is primarily for adding more storage.
>>> A mapping contains the (optional) keys device_name, virtual_name,
>>> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
>>> ebs.delete_on_termination.
>>>
>>> Please let me know how I would set the info from above example using the
>>> ec2_instance module.
>>>
>>> Thank you
>>>
>>> --
>>> 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/82ba8db3-ed16-4230-9eaa-
>>> 743a74fbebe0%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>>
>>
>>
>> --
>> Karl Auer
>>
>> Email  : ka...@2pisoftware.com
>> Website: http://2pisoftware.com
>>
>> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
>> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>>
>> --
>> 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/CA%2B%2BT08S7vzfM%2BcJRttJKoW7uUYzuSpu_
>> jbkaASZPsPOJYN7zwQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
>
> Jonathan lozada de la matta
>
> AUTOMATION CONSULTANT - AUTOMATION PRACTICE
>
> Red Hat Consulting Services 
>
> jloza...@redhat.com
>
>
>
>
> --
> 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/CAFYJA%2BLisoqd0n4H693b--
> cUiqppawJObu0DLu4ttjh0LZ2U4w%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/CABZrV%3DaLN_bZGB%3Ds-YC%2B9qQxUmM9hJrn4nFJZfn903W2wCdxeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Need some help using Kerberos Authentication for Windows Target

2018-08-12 Thread Jordan Borean
While pip is showing the packages are installed it seems like they were not 
installed properly or something is wrong with your Python environment. It 
is showing various warnings saying various kwargs pywinrm expects from 
requests-kerberos are not there which shouldn't be happening if you are on 
the latest version. The actual error you are getting seems to be a bug, it 
is getting a 200 response but is expecting the server to reply with a token 
so the client can authenticate the host and verify it is who it is saying 
it is.

I would recommend you create a virtualenv and install all the dependencies 
there to verify you are working with a clean environment. To do this you 
can run;

virtualenv ansible-test
source ansible-test/bin/activate
pip install ansible pywinrm[kerberos]


ansible all -i kerbauth -m win_ping -v


Thanks

Jordan

-- 
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/5f09fda1-af4f-4604-8480-5345176bb91d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Jonathan Lozada De La Matta
when you are checking module documentation, make sure you match the correct
ansible version.  For example, latest
https://docs.ansible.com/ansible/latest/modules/modules_by_category.html
you can change the latest part to 2.4, 2.5, 2.6, or devel. Sometimes the
documentation changes so the path in the url might be different but, for
the most part this works.

On Sun, Aug 12, 2018 at 6:21 PM Karl Auer  wrote:

> Well, I don't know what I was looking at, but now there ARE ec2_instance
> examples. I haven't checked them out beyond noting that at least they are
> not ec2_instance_facts examples :-)
>
> Maybe I was looking at older documentation.
>
> As soon as I logged into github I found the previous bug report on this
> issue.
>
> Regards, K.
>
>
> On Sun, Aug 12, 2018 at 11:53 PM, Jonathan Lozada De La Matta <
> jloza...@redhat.com> wrote:
>
>> please submit an issue or a PR to update the docs if you have examples or
>> figure out how it should be.
>>
>> On Sun, Aug 12, 2018 at 1:26 AM Karl Auer  wrote:
>>
>>> Yes, it's not clear. And is made worse by the fact that there are STILL
>>> no ec2_instance examples! The examples given are ec2_instance_facts
>>> examples.
>>>
>>> Regard, K.
>>>
>>>
>>> On Sun, Aug 12, 2018 at 10:57 AM, Bruce Affonso >> > wrote:
>>>
 I am trying to use the ec2_instance module to create an ec2 instance.
 When using the ec2 module to configure a volume one would do something like
 this:

 volumes:
   - device_name: /dev/sda1
 volume_type: gp2
 volume_size: 50

 With ec2_instance I am not sure how to set the values.

 In the description it says:

 A list of block device mappings, by default this will always use the
 AMI root device so the volumes option is primarily for adding more storage.
 A mapping contains the (optional) keys device_name, virtual_name,
 ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
 ebs.delete_on_termination.

 Please let me know how I would set the info from above example using
 the ec2_instance module.

 Thank you

 --
 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/82ba8db3-ed16-4230-9eaa-743a74fbebe0%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.
>>>
>>>

>>>
>>>
>>> --
>>> Karl Auer
>>>
>>> Email  : ka...@2pisoftware.com
>>> Website: http://2pisoftware.com
>>>
>>> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
>>> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>>>
>>> --
>>> 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/CA%2B%2BT08S7vzfM%2BcJRttJKoW7uUYzuSpu_jbkaASZPsPOJYN7zwQ%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>>
>> Jonathan lozada de la matta
>>
>> AUTOMATION CONSULTANT - AUTOMATION PRACTICE
>>
>> Red Hat Consulting Services 
>>
>> jloza...@redhat.com
>>
>>
>>
>>
>> --
>> 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/CAFYJA%2BLisoqd0n4H693b--cUiqppawJObu0DLu4ttjh0LZ2U4w%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Karl Auer
>
> Email  : ka...@2pisoftware.com
> Website: http://2pisoftware.com
>
> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>
> --
> You received this message because you are subscr

Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Karl Auer
Well, I don't know what I was looking at, but now there ARE ec2_instance
examples. I haven't checked them out beyond noting that at least they are
not ec2_instance_facts examples :-)

Maybe I was looking at older documentation.

As soon as I logged into github I found the previous bug report on this
issue.

Regards, K.


On Sun, Aug 12, 2018 at 11:53 PM, Jonathan Lozada De La Matta <
jloza...@redhat.com> wrote:

> please submit an issue or a PR to update the docs if you have examples or
> figure out how it should be.
>
> On Sun, Aug 12, 2018 at 1:26 AM Karl Auer  wrote:
>
>> Yes, it's not clear. And is made worse by the fact that there are STILL
>> no ec2_instance examples! The examples given are ec2_instance_facts
>> examples.
>>
>> Regard, K.
>>
>>
>> On Sun, Aug 12, 2018 at 10:57 AM, Bruce Affonso 
>> wrote:
>>
>>> I am trying to use the ec2_instance module to create an ec2 instance.
>>> When using the ec2 module to configure a volume one would do something like
>>> this:
>>>
>>> volumes:
>>>   - device_name: /dev/sda1
>>> volume_type: gp2
>>> volume_size: 50
>>>
>>> With ec2_instance I am not sure how to set the values.
>>>
>>> In the description it says:
>>>
>>> A list of block device mappings, by default this will always use the AMI
>>> root device so the volumes option is primarily for adding more storage.
>>> A mapping contains the (optional) keys device_name, virtual_name,
>>> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
>>> ebs.delete_on_termination.
>>>
>>> Please let me know how I would set the info from above example using the
>>> ec2_instance module.
>>>
>>> Thank you
>>>
>>> --
>>> 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/82ba8db3-ed16-4230-9eaa-
>>> 743a74fbebe0%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>>
>>
>>
>> --
>> Karl Auer
>>
>> Email  : ka...@2pisoftware.com
>> Website: http://2pisoftware.com
>>
>> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
>> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>>
>> --
>> 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/CA%2B%2BT08S7vzfM%2BcJRttJKoW7uUYzuSpu_
>> jbkaASZPsPOJYN7zwQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
>
> Jonathan lozada de la matta
>
> AUTOMATION CONSULTANT - AUTOMATION PRACTICE
>
> Red Hat Consulting Services 
>
> jloza...@redhat.com
>
>
>
>
> --
> 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/CAFYJA%2BLisoqd0n4H693b--
> cUiqppawJObu0DLu4ttjh0LZ2U4w%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Karl Auer

Email  : ka...@2pisoftware.com
Website: http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

-- 
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/CA%2B%2BT08S6t6cwH%2BmpksJm1X1VAQZ8sRo5M%2BsBdLrpWZ7zdSnLuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Karl Auer
You may need to specify /dev/sda1 still, if you want to attach a larger
root volume than the AMI provides, or a volume with characteristics the
default volume does not have.

Regards, K.


On Mon, Aug 13, 2018 at 2:08 AM, Sakthivel G  wrote:

> Hi,
>
> /dev/sda is reserved for root.
>
> Please try below...
>
> # Single instance with ssd gp2 root volume
> - ec2:
> key_name: mykey
> group: webserver
> instance_type: c3.medium
> image: ami-123456
> wait: yes
> wait_timeout: 500
> volumes:
>   - device_name: /dev/xvda
> volume_type: gp2
> volume_size: 8
> vpc_subnet_id: subnet-29e63245
> assign_public_ip: yes
> count_tag:
>   Name: dbserver
> exact_count: 1
>
>
>
> On Sun 12 Aug, 2018, 6:27 AM Bruce Affonso, 
> wrote:
>
>> I am trying to use the ec2_instance module to create an ec2 instance.
>> When using the ec2 module to configure a volume one would do something like
>> this:
>>
>> volumes:
>>   - device_name: /dev/sda1
>> volume_type: gp2
>> volume_size: 50
>>
>> With ec2_instance I am not sure how to set the values.
>>
>> In the description it says:
>>
>> A list of block device mappings, by default this will always use the AMI
>> root device so the volumes option is primarily for adding more storage.
>> A mapping contains the (optional) keys device_name, virtual_name,
>> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
>> ebs.delete_on_termination.
>>
>> Please let me know how I would set the info from above example using the
>> ec2_instance module.
>>
>> Thank you
>>
>> --
>> 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/82ba8db3-ed16-4230-9eaa-
>> 743a74fbebe0%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/CANqhLCCEePkejzsFp4-YMK5M8qtfkgBg4sRKcRSkQRghPvM%
> 3D7A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Karl Auer

Email  : ka...@2pisoftware.com
Website: http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

-- 
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/CA%2B%2BT08RnraQEQBdkskpe249Qx8%2BvyK7N_me4j-UmofLyZmhuVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Need some help using Kerberos Authentication for Windows Target

2018-08-12 Thread David Baumann
I thing the pykerberos module is missing

Check ansible docs

-- 
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/fd1b0c7c-daca-47f5-8215-cfab23a78224%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Sakthivel G
Hi,

/dev/sda is reserved for root.

Please try below...

# Single instance with ssd gp2 root volume
- ec2:
key_name: mykey
group: webserver
instance_type: c3.medium
image: ami-123456
wait: yes
wait_timeout: 500
volumes:
  - device_name: /dev/xvda
volume_type: gp2
volume_size: 8
vpc_subnet_id: subnet-29e63245
assign_public_ip: yes
count_tag:
  Name: dbserver
exact_count: 1



On Sun 12 Aug, 2018, 6:27 AM Bruce Affonso,  wrote:

> I am trying to use the ec2_instance module to create an ec2 instance.
> When using the ec2 module to configure a volume one would do something like
> this:
>
> volumes:
>   - device_name: /dev/sda1
> volume_type: gp2
> volume_size: 50
>
> With ec2_instance I am not sure how to set the values.
>
> In the description it says:
>
> A list of block device mappings, by default this will always use the AMI
> root device so the volumes option is primarily for adding more storage.
> A mapping contains the (optional) keys device_name, virtual_name,
> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
> ebs.delete_on_termination.
>
> Please let me know how I would set the info from above example using the
> ec2_instance module.
>
> Thank you
>
> --
> 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/82ba8db3-ed16-4230-9eaa-743a74fbebe0%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/CANqhLCCEePkejzsFp4-YMK5M8qtfkgBg4sRKcRSkQRghPvM%3D7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Please explain ec2_instance volumes config

2018-08-12 Thread Jonathan Lozada De La Matta
please submit an issue or a PR to update the docs if you have examples or
figure out how it should be.

On Sun, Aug 12, 2018 at 1:26 AM Karl Auer  wrote:

> Yes, it's not clear. And is made worse by the fact that there are STILL no
> ec2_instance examples! The examples given are ec2_instance_facts examples.
>
> Regard, K.
>
>
> On Sun, Aug 12, 2018 at 10:57 AM, Bruce Affonso 
> wrote:
>
>> I am trying to use the ec2_instance module to create an ec2 instance.
>> When using the ec2 module to configure a volume one would do something like
>> this:
>>
>> volumes:
>>   - device_name: /dev/sda1
>> volume_type: gp2
>> volume_size: 50
>>
>> With ec2_instance I am not sure how to set the values.
>>
>> In the description it says:
>>
>> A list of block device mappings, by default this will always use the AMI
>> root device so the volumes option is primarily for adding more storage.
>> A mapping contains the (optional) keys device_name, virtual_name,
>> ebs.device_type, ebs.device_size, ebs.kms_key_id, ebs.iops, and
>> ebs.delete_on_termination.
>>
>> Please let me know how I would set the info from above example using the
>> ec2_instance module.
>>
>> Thank you
>>
>> --
>> 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/82ba8db3-ed16-4230-9eaa-743a74fbebe0%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>
>
>>
>
>
> --
> Karl Auer
>
> Email  : ka...@2pisoftware.com
> Website: http://2pisoftware.com
>
> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>
> --
> 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/CA%2B%2BT08S7vzfM%2BcJRttJKoW7uUYzuSpu_jbkaASZPsPOJYN7zwQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

Jonathan lozada de la matta

AUTOMATION CONSULTANT - AUTOMATION PRACTICE

Red Hat Consulting Services 

jloza...@redhat.com

-- 
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/CAFYJA%2BLisoqd0n4H693b--cUiqppawJObu0DLu4ttjh0LZ2U4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Need some help using Kerberos Authentication for Windows Target

2018-08-12 Thread 'J Hawkesworth' via Ansible Project
I haven't seen this error before myself.
This line in your your errors makes it look to me like there is something 
unexpected about the underlying libs on your ansible controller.

/usr/lib/python2.7/site-
packages/winrm/transport.py:299: UserWarning: Function  does not contain optional arg force_preemptive, 
check installed version with pip list

Sometimes things get scrambled when there is a mismatch between versions of 
libraries installed by your operating system package manager and the 
libraries that python expects.

In such cases sometimes you can fix things but uninstalling and 
reinstalling everything.

You don't mention how you installed ansible but if its from pip I'd 
recommend upgrading pip itself to the latest version, then uninstalling and 
reinstalling ansible.

Hope this helps,

Jon

On Friday, August 10, 2018 at 9:01:46 PM UTC+1, Shawn Singh wrote:
>
> Hello,
>
> I've configured a Windows 2016 Server using 
> ConfigureRemotingForAnsible.ps1 and am able to do a simple ping test using 
> basic auth.
>
> Command I'm using is:
> ansible all -i myinventory -m win_ping
>
> I get a pong back.
>
> When trying to use Kerberos, authentication ... different story:
> My inventory looks like:
> xjaxd11133app.csxt.ad.csx.com ansible_user=network...@csxt.ad.csx.com 
>  ansible_password=secret ansible_port=5986 
> ansible_winrm_transport=kerberos ansible_connection=winrm 
> ansible_winrm_server_cert_validation=ignore
>
> Instead, I'm seeing:
> ansible all -i kerbauth -m win_ping
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg force_preemptive, check installed version with pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg delegate, check installed version with pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg send_cbt, check installed version with pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg principal, check installed version with pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg sanitize_mutual_error_response, check installed version with 
> pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg hostname_override, check installed version with pip list
>   % (str(function), name))
> An exception occurred during task execution. To see the full traceback, 
> use -vvv. The error was: MutualAuthenticationError: Unable to authenticate 
> 
> xjaxd11133app.csxt.ad.csx.com | FAILED! => {
> "msg": "Unexpected failure during module execution.",
> "stdout": ""
> }
>
> For more verbose:
>
> [j8683@lnx30137 /home/j8683]$ ansible all -i kerbauth -m win_ping -v
> ansible 2.6.2
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = 
> [u'/home/j8683/.ansible/plugins/modules', 
> u'/usr/share/ansible/plugins/modules']
>   ansible python module location = /usr/lib/python2.7/site-packages/ansible
>   executable location = /usr/bin/ansible
>   python version = 2.7.5 (default, May  3 2017, 07:55:04) [GCC 4.8.5 
> 20150623 (Red Hat 4.8.5-14)]
> Using /etc/ansible/ansible.cfg as config file
> setting up inventory plugins
> Parsed /home/j8683/kerbauth inventory source with ini plugin
> Loading callback plugin minimal of type stdout, v2.0 from 
> /usr/lib/python2.7/site-packages/ansible/plugins/callback/minimal.pyc
> META: ran handlers
> Using module file 
> /usr/lib/python2.7/site-packages/ansible/modules/windows/win_ping.ps1
>  ESTABLISH WINRM CONNECTION FOR USER: 
> network...@csxt.ad.csx.com  on PORT 5986 TO 
> xjaxd11133app.csxt.ad.csx.com
> checking if winrm_host xjaxd11133app.csxt.ad.csx.com is an IPv6 address
> creating Kerberos CC at /tmp/tmp8tVXsJ
> calling kinit with subprocess for principal network...@csxt.ad.csx.com 
> 
> kinit succeeded for principal network...@csxt.ad.csx.com 
>  WINRM CONNECT: transport=kerberos 
> endpoint=https://xjaxd11133app.csxt.ad.csx.com:5986/wsman
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg force_preemptive, check installed version with pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg delegate, check installed version with pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/winrm/transport.py:299: UserWarning: 
> Function  does not contain 
> optional arg send_cbt, check installed version with pip list
>   % (str(function), name))
> /usr/lib/python2.7/site-packages/w