Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
Thanks do you happen to know where is the default install location for 
modules ?

On Saturday, September 26, 2015 at 1:37:54 PM UTC-7, Brian Coca wrote:
>
> it cannot find the proxmox plugin, double check that it is installed 
> on your system. 
>
> On Fri, Sep 25, 2015 at 8:30 PM,   wrote: 
> > Hello, 
> > 
> > I want to test the new proxmox module for ansible 2.0. I followed the 
> > instructions for building and installing ansible from source. When I run 
> my 
> > testing playbook it produces an error, any ideas on how I can get this 
> thing 
> > working ? 
> > 
> > ERROR! 'proxmox' is not a valid attribute for a Play 
> > 
> > 
> > The error appears to have been in 
> > '/home/rreeves/git_repos/ansible-test-02/proxmox.yml': line 3, column 3, 
> but 
> > may 
> > be elsewhere in the file depending on the exact syntax problem. 
> > 
> > 
> > The offending line appears to be: 
> > 
> > 
> > # Create new containers 
> > - name: Create test-system-01 
> >   ^ here 
> > 
> > 
> > this is my testing playbook 
> > 
> > --- 
> > # Create new containers 
> > - name: Create test-system-01 
> >   proxmox: vmid=110 node='cluster001' api_user='root@pam' 
> > api_password='test1234' api_host='proxmox01' password='password1234' 
> > hostname='test-system-01' 
> > ostemplate='local:iso/ubuntu-14.04.3-server-amd64.iso' 
> > 
> > 
> > - name: Create test-system-02 
> >   proxmox: vmid=111 node='cluster001' api_user='root@pam' 
> > api_password='test1234' api_host='proxmox02' password='password1234' 
> > hostname='test-system-02' 
> > ostemplate='local:iso/ubuntu-14.04.3-server-amd64.iso 
> > 
> > 
> > 
> > checking version 
> > 
> > ansible 2.0.0 
> >   config file = 
> >   configured module search path = None 
> > 
> > 
> > 
> > 
> > -- 
> > 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/566d923f-9324-4d85-b9d9-9c02e7dc360c%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/f906ef7a-8bdb-48bd-9f1e-fa6fa7173d88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Run .exe on windows command prompt

2015-09-28 Thread Dimitri Yioulos
Try the raw command without any quotes, as in raw: 
D:\builds\router\bin\wrapper.exe.  The following worked for me, and 
installed vlc on a test win2k8 box:

---

- hosts: all
  gather_facts: false

  tasks:
- name: installing app ...
  raw: c:\temp\vlc-2.2.1-win32.exe /S

On Monday, September 28, 2015 at 8:32:49 AM UTC-4, Jugal Porwal wrote:
>
> Hi,
>
> I want to run a .exe on windows command prompt from my centos control 
> node. The command is as follows :
>
> wrapper.exe  -t wrapper.conf
>
> Initially i tried to atleast run the .exe without any args using my 
> following playbook :
>
> ---
> - hosts: windows
>   tasks:
> - name: Register as a service
>   raw: 'D:\builds\router\bin\wrapper.exe'
>
>
>
> But i got the following error:
>
> fatal: [192.168.199.94]: FAILED! => {"changed": false, "failed": true, 
> "rc": 1, "stderr": "#< CLIXML\r\n http://schemas.microsoft.com/powershell/2004/04\;> S=\"Error\">D:_x0008_uilds : The term 'D:_x0008_uilds' is not recognized as 
> the name of a cmdlet, _x000D__x000A_function, script 
> file, or operable program. Check the spelling of the name, or 
> _x000D__x000A_if a path was included, verify that the 
> path is correct and try again._x000D__x000A_At line:1 
> char:1_x000D__x000A_+ D:_x0008_uilds_x000D__x000A_ S=\"Error\">+ _x000D__x000A_+ 
> CategoryInfo  : ObjectNotFound: (D:_x0008_uilds:String) [], 
> CommandNot _x000D__x000A_   
> FoundException_x000D__x000A_+ 
> FullyQualifiedErrorId : CommandNotFoundException_x000D__x000A_ S=\"Error\"> _x000D__x000A_outer_x0008_in\\wrapper.exe 
> : The module 'outer_x0008_in' could not be loaded. For more 
> _x000D__x000A_information, run 'Import-Module 
> outer_x0008_in'._x000D__x000A_At line:2 
> char:1_x000D__x000A_+ 
> outer_x0008_in\\wrapper.exe_x000D__x000A_ S=\"Error\">+ _x000D__x000A_+ 
> CategoryInfo  : ObjectNotFound: (outer_x0008_in\\wrapper.exe:String) 
> [] _x000D__x000A_   , 
> CommandNotFoundException_x000D__x000A_ S=\"Error\">+ FullyQualifiedErrorId : 
> CouldNotAutoLoadModule_x000D__x000A_ S=\"Error\"> _x000D__x000A_", "stdout": "", "stdout_lines": []}
>
>
> Is it achievable what i'm trying to do?
>

-- 
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/61150a99-68b1-4159-b804-901e0d254841%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: os_volume 404 error

2015-09-28 Thread David Shrewsbury
So, good news and good-ish news...

The glance 404 problem you were experiencing should be fixed in shade.
I have tested this against your cloud. We haven't released a new version
with the fix yet, but you can pull in the latest code from the source repo
(https://github.com/openstack-infra/shade) and give that a test, if you 
like.

Since the default image API version is 2, you should set
image_api_version to 1 in your clouds.yaml file, or set the environment
variable OS_IMAGE_API_VERSION to 1, if you aren't using a clouds.yaml.

As for the volume 404 problem, I cannot reproduce that with the latest
released version of shade, which is 0.14.0, against your cloud. Can you
try upgrading shade and testing that again?

-Dave


On Sunday, September 20, 2015 at 10:56:13 PM UTC-4, vallard wrote:
>
> Thanks. I'll set it up tomorrow and email you both off list. 
>
>
>
> On Sep 20, 2015, at 4:54 PM, Monty Taylor  > wrote:
>
> Everything Shrews says is correct - I would love an account - and we can 
> add a metacloud profile to os-client-config too. I'm sure you're not doing 
> anything too crazy - it turns out that the number of ways all this can 
> combine are large - we have all sorts of logic already to handle "normal" 
> behavior. I'm sure we'll just find another nugger of normal :)
>
> On Sunday, September 20, 2015 at 7:32:22 PM UTC-4, David Shrewsbury wrote:
>>
>> Accounts would be most helpful and appreciated. Myself and Monty Taylor 
>> do most of the Ansible and
>> shade development, so if we could both get access, that would go a long 
>> way to improving the modules
>> for you. Please email me off-list to let me know what you need from us to 
>> make that happen.
>>
>> -Dave
>>
>>
>> On Friday, September 18, 2015 at 5:26:44 PM UTC-4, vallard wrote:
>>>
>>> Ah, thanks for the info on the security group stuff.  I'll try that 
>>> out.  I'm happy to let someone have a metacloud account to test things 
>>> with.  
>>>
>>> On Fri, Sep 18, 2015 at 10:23 AM, David Shrewsbury >> > wrote:
>>>
 Sorry you're having issues. Sounds like metacloud is doing something we 
 don't expect with
 their endpoints since you are having the same problem. This is 
 difficult to debug without a
 metacloud account.

 Your solution to the image service problem was to add code to remove 
 the "/v1". Does that
 solution also fix the problem with the volume service?

 As for security groups, in your clouds.yaml (which I assume you are 
 using?), you will need
 to set 'secgroup_source' to 'nova'. It defaults to using neutron.

 -Dave


 On Friday, September 18, 2015 at 9:51:24 AM UTC-4, vallard wrote:
>
> Having the same problem with os_volume that I had with glance images 
> where I get a 404 error.  
>
> - Ansible 2.0 playbook: 
>
>  - name: ensure there is a volume for storing data. 
> os_volume: 
>   size: 40
>   display_name: lab_volume
> register: vol 
>
> Error message: 
> fatal: [localhost]: FAILED! => {"changed": false, "failed": true, 
> "msg": "Error fetching volume list: Not Found (HTTP 404)"}
>
> When I got an error like this with glance, I had to go in and modify 
> some code in the shade library.  I made sure I put the shade library back 
> to what it was before so it shouldn't be the issue here.  
>
> My OpenStack (metacloud) uses v1 APIs of cinder.  
>
> The other issue, somewhat related is using the security_groups found 
> in 2.0.  Those don't work with my openstack environment either because 
> they 
> require neutron.  No neutron in my environment.  
>
 -- 
 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/FwZthkNjlWA/unsubscribe
 .
 To unsubscribe from this group and all its topics, 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/b1f2f593-bf38-4979-809c-f3d3d33fa9c6%40googlegroups.com
  
 
 .

 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> -- 
>>> Vallard
>>> http://benincosa.com
>>>
>> -- 
> 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/FwZthkNjlWA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> ansible-proje...@googlegroups.com .
> To 

[ansible-project] Re: Openstack os_image does not make image public in Glance

2015-09-28 Thread David Shrewsbury
I believe this is fixed in the latest version of the shade library.

Please upgrade shade to the latest version (0.14.0) and try again.


On Monday, September 28, 2015 at 9:11:16 AM UTC-4, Vilian Atmadzhov wrote:
>
> I have the following task in an Ansible playbook, using Ansible 2.0:
>
> - name: Push base image to glance
>   os_image:
>auth:
>   auth_url: *
>   username: admin
>   password: *
>   project_name: admin
>name: centos-6
>container_format: bare
>disk_format: qcow2
>state: present
>filename: centos-6.qcow2
>is_public: yes
>
> The image is successfully pushed to Glance, however it is not made public. 
> I have to manually edit the image in Horizon, or use glance cli to make it 
> public.
>
> I have raised a bug in ansible-modules-core in Github : 
> https://github.com/ansible/ansible-modules-core/issues/2100
>
> Any help will be greatly appreciated.
>
> Thanks
>

-- 
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/62b9ae99-443e-43dc-a9eb-f29ce828ea75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] mod_proxy_balancer

2015-09-28 Thread Tiziano Di Gennaro
Hi,
Does anybody knows how to manage Apache mod_proxy_balancer balancer-manager 
?
Is there a module?

-- 
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/711f1f85-942e-4826-a18f-b2b94e1edd11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread Brian Coca
that changes depending on how you isntalled



-- 
Brian Coca

-- 
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/CAJ5XC8kLBOZBfS%3Dtqv9eVez%3DUx56giKWg77fiV8C1yu6%3DZtkJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
well I installed this from source following this guide.

https://valdhaus.co/writings/ansible-ubuntu-debian/

This is the only proxmox modules I could locate

 find / | grep proxmox
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox_template.py
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox.py
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox.pyc
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras/cloud/misc/proxmox_template.pyc

On Monday, September 28, 2015 at 1:05:19 PM UTC-7, Brian Coca wrote:
>
> that changes depending on how you isntalled 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/f0f44a7a-9ece-4f8f-b590-838331c3c4ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Run .exe on windows command prompt

2015-09-28 Thread Chris Church
It appears as though the backslashes are escaping the character that
follows (which doesn't quite make sense since your example uses a
single-quoted string).   What version of ansible are you using?

You could try:raw: "D:\\builds\\router\\bin\\wrapper.exe"


On Mon, Sep 28, 2015 at 4:27 AM, Jugal Porwal  wrote:

> Hi,
>
> I want to run a .exe on windows command prompt from my centos control
> node. The command is as follows :
>
> wrapper.exe  -t wrapper.conf
>
> Initially i tried to atleast run the .exe without any args using my
> following playbook :
>
> ---
> - hosts: windows
>   tasks:
> - name: Register as a service
>   raw: 'D:\builds\router\bin\wrapper.exe'
>
>
>
> But i got the following error:
>
> fatal: [192.168.199.94]: FAILED! => {"changed": false, "failed": true,
> "rc": 1, "stderr": "#< CLIXML\r\n http://schemas.microsoft.com/powershell/2004/04\;> S=\"Error\">D:_x0008_uilds : The term 'D:_x0008_uilds' is not recognized as
> the name of a cmdlet, _x000D__x000A_function, script
> file, or operable program. Check the spelling of the name, or
> _x000D__x000A_if a path was included, verify that the
> path is correct and try again._x000D__x000A_At line:1
> char:1_x000D__x000A_+ D:_x0008_uilds_x000D__x000A_ S=\"Error\">+ _x000D__x000A_+
> CategoryInfo  : ObjectNotFound: (D:_x0008_uilds:String) [],
> CommandNot _x000D__x000A_
> FoundException_x000D__x000A_+
> FullyQualifiedErrorId : CommandNotFoundException_x000D__x000A_ S=\"Error\"> _x000D__x000A_outer_x0008_in\\wrapper.exe
> : The module 'outer_x0008_in' could not be loaded. For more
> _x000D__x000A_information, run 'Import-Module
> outer_x0008_in'._x000D__x000A_At line:2
> char:1_x000D__x000A_+ 
> outer_x0008_in\\wrapper.exe_x000D__x000A_ S=\"Error\">+ _x000D__x000A_+
> CategoryInfo  : ObjectNotFound: (outer_x0008_in\\wrapper.exe:String)
> [] _x000D__x000A_   , 
> CommandNotFoundException_x000D__x000A_ S=\"Error\">+ FullyQualifiedErrorId : 
> CouldNotAutoLoadModule_x000D__x000A_ S=\"Error\"> _x000D__x000A_", "stdout": "", "stdout_lines": []}
>
>
> Is it achievable what i'm trying to do?
>
> --
> 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/f7d197e0-fb20-4cbd-b4da-bae2b726bc05%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/CAH%2BKTJ5470qWS0m4nvQK25k_12JeaQ0frN7aMZ6_1r9VvMikBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
thanks for the tip, it is the same location that I have assigned to library

python -c 'import ansible.modules as m; print m.__file__'
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/__init__.pyc

On Monday, September 28, 2015 at 2:29:14 PM UTC-7, Matt Martz wrote:
>
> The following command should give you the path to the modules:
>
> python -c 'import ansible.modules as m; print m.__file__'
>
>
> On Mon, Sep 28, 2015 at 4:15 PM,  wrote:
>
>> *okay I have looked through ansible.cfg and changed this line*
>> library = 
>> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules
>>
>> *sudo ansible --version*
>> ansible 2.0.0
>>   config file = /etc/ansible/ansible.cfg
>>   configured module search path = 
>> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules
>>
>> *still the same problem*
>> ERROR! 'proxmox' is not a valid attribute for a Play
>>
>> The error appears to have been in '/home/ops/proxmox.yml': line 3, column 
>> 3, but may
>> be elsewhere in the file depending on the exact syntax problem.
>>
>> *git submodule status*
>>  a4ac171a070551f1ed17a9c09b41d2481ad779af lib/ansible/modules/core 
>> (remotes/origin/revert-1564-win_features_improvements_v2-26-ga4ac171)
>>  3c8c7168014234be339a42481d74f3954d47a4fc lib/ansible/modules/extras 
>> (heads/devel)
>>
>> *Is there a better source for installing the development environment ?* 
>>
>>
>> On Monday, September 28, 2015 at 1:21:00 PM UTC-7, Brian Coca wrote:
>>>
>>> I would have said you are missing a 'git submodule init --recursive' 
>>> step .. but then you would not have any modules, if you are running 
>>> python2.7 it should find these in the python path, otherwise just try 
>>> setting in ansible.cfg the path directly for core and extras to the 
>>> subdirs of 
>>> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules
>>>  
>>>
>>>
>>>
>>> -- 
>>> Brian Coca 
>>>
>> -- 
>> 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/2630484e-4ccf-49f8-ac53-f714d8b2a7ab%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>

-- 
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/3310e73f-a8ae-43d4-a98d-f3e228e23ac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread Matt Martz
The following command should give you the path to the modules:

python -c 'import ansible.modules as m; print m.__file__'


On Mon, Sep 28, 2015 at 4:15 PM,  wrote:

> *okay I have looked through ansible.cfg and changed this line*
> library =
> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules
>
> *sudo ansible --version*
> ansible 2.0.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path =
> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules
>
> *still the same problem*
> ERROR! 'proxmox' is not a valid attribute for a Play
>
> The error appears to have been in '/home/ops/proxmox.yml': line 3, column
> 3, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> *git submodule status*
>  a4ac171a070551f1ed17a9c09b41d2481ad779af lib/ansible/modules/core
> (remotes/origin/revert-1564-win_features_improvements_v2-26-ga4ac171)
>  3c8c7168014234be339a42481d74f3954d47a4fc lib/ansible/modules/extras
> (heads/devel)
>
> *Is there a better source for installing the development environment ?*
>
>
> On Monday, September 28, 2015 at 1:21:00 PM UTC-7, Brian Coca wrote:
>>
>> I would have said you are missing a 'git submodule init --recursive'
>> step .. but then you would not have any modules, if you are running
>> python2.7 it should find these in the python path, otherwise just try
>> setting in ansible.cfg the path directly for core and extras to the
>> subdirs of
>> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules
>>
>>
>>
>> --
>> Brian Coca
>>
> --
> 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/2630484e-4ccf-49f8-ac53-f714d8b2a7ab%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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/CAD8N0v_K4ReYq5sE8ZZ3EAbrbDx2k9T26LppHg7xo_a7-w%3DJnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] how to install pip2.7 packages with ansible.

2015-09-28 Thread Roy
thanks

On Wednesday, September 23, 2015 at 1:43:41 PM UTC-4, Brian Coca wrote:
>
> use the executable option of the module to specify the pip2.7 over the 
> default pip. 
>
> On Wed, Sep 23, 2015 at 1:40 PM, Roy  
> wrote: 
> > Hi, 
> > 
> >We have Centos 6.5 with python2.6 as default and python2.7 also on 
> it. 
> > 
> > So how do we install python packages for pip2.7 ? 
> > 
> > There is no module name pip2.7 in ansible. 
> > 
> > any help here ? 
> > 
> > -- 
> > 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/2ebbb141-4c1a-426d-9215-b3b601dcab9f%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/d253de8c-cde4-49ea-8aef-b0774d8e416b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Where to put vars_prompt in a role?

2015-09-28 Thread Joanna Delaporte
I want a role to have a vars_prompt. Can I put it in the tasks/main.yml, or 
does it have to be in the playbook that runs the role?

-- 
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/629ba60a-8ea6-4f34-b6e1-9cc5a56e87e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Where to put vars_prompt in a role?

2015-09-28 Thread Joanna Delaporte
Thanks for the quick update! 

Joanna

On Monday, September 28, 2015 at 9:38:29 AM UTC-5, Brian Coca wrote:
>
> not supported, use pause module 
>
> -- 
> Brian Coca 
>

-- 
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/d81a41e7-e990-4254-a675-8127d1b1bf3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Where to put vars_prompt in a role?

2015-09-28 Thread Brian Coca
not supported, use pause module

-- 
Brian Coca

-- 
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/CAJ5XC8mtuo0%3DEg4jBpRqr3uYw9eDhw8CE20MT73eS9g6FF8LTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Should deployment scripts have no roles.

2015-09-28 Thread Brian Coca
Roles are a way to organize and reuse, if you don't need to do so, it
makes sense you don't use them. Task includes can also be used to do
the same, but are limited to just tasks.

In the end, do what works for you.


-- 
Brian Coca

-- 
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/CAJ5XC8%3DENmx-5jt%3DzrJXkNT1UPdjmfU07dMh3EKPBYd6tWASWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Should deployment scripts have no roles.

2015-09-28 Thread David González
Hi,
Given that in my case provisioning doesn't rely on Ansible yet.
Does it make sense that deployment playbooks have no roles at all?
I'm getting to a point where my playbooks are just a list of tasks which I 
gather in various "include" files grouped by what are they doing because I 
don't see them "roleable".
I mean, it makes no sense for me to have a rol "deploy app" since 
deployment is a set of actions not a setup describing.
For me "being a tomcat server" is obviously a rol, but "release last 
version" is a bunch of actions (checkout, stop server, deploy, start 
server...)

Is that approach correct?
Which is the way you organize your deployment tasks?


Thanks in advance.

David.

-- 
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/17e2607c-ed0b-40c7-a766-a2e172f91f1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Run .exe on windows command prompt

2015-09-28 Thread Jugal Porwal
Hi,

I want to run a .exe on windows command prompt from my centos control node. 
The command is as follows :

wrapper.exe  -t wrapper.conf

Initially i tried to atleast run the .exe without any args using my 
following playbook :

---
- hosts: windows
  tasks:
- name: Register as a service
  raw: 'D:\builds\router\bin\wrapper.exe'



But i got the following error:

fatal: [192.168.199.94]: FAILED! => {"changed": false, "failed": true, 
"rc": 1, "stderr": "#< CLIXML\r\nhttp://schemas.microsoft.com/powershell/2004/04\;>D:_x0008_uilds : The term 'D:_x0008_uilds' is not recognized as 
the name of a cmdlet, _x000D__x000A_function, script 
file, or operable program. Check the spelling of the name, or 
_x000D__x000A_if a path was included, verify that the 
path is correct and try again._x000D__x000A_At line:1 
char:1_x000D__x000A_+ D:_x0008_uilds_x000D__x000A_+ _x000D__x000A_+ 
CategoryInfo  : ObjectNotFound: (D:_x0008_uilds:String) [], 
CommandNot _x000D__x000A_   
FoundException_x000D__x000A_+ FullyQualifiedErrorId 
: CommandNotFoundException_x000D__x000A_ 
_x000D__x000A_outer_x0008_in\\wrapper.exe : The module 
'outer_x0008_in' could not be loaded. For more _x000D__x000A_information, run 'Import-Module 
outer_x0008_in'._x000D__x000A_At line:2 char:1_x000D__x000A_+ 
outer_x0008_in\\wrapper.exe_x000D__x000A_+ 
_x000D__x000A_+ 
CategoryInfo  : ObjectNotFound: (outer_x0008_in\\wrapper.exe:String) 
[] _x000D__x000A_   , 
CommandNotFoundException_x000D__x000A_+ FullyQualifiedErrorId : 
CouldNotAutoLoadModule_x000D__x000A_ _x000D__x000A_", "stdout": "", "stdout_lines": []}


Is it achievable what i'm trying to do?

-- 
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/f7d197e0-fb20-4cbd-b4da-bae2b726bc05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] include when not work

2015-09-28 Thread Brian Coca
The 'when' is being applied to the included tasks so they should all
appear as skipped, before 2.0 there is no way to prevent the include
itself from happening.



-- 
Brian Coca

-- 
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/CAJ5XC8nab-jBWYA3XLSpn-gHQ-NhQE-x-_BX%2B7wh5n54-NxL4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] issue with aws cli command to associate elastic ip to new instance

2015-09-28 Thread Adrian Black
Ah ok. 
I have changed it to 

shell python3 -E /usr/bin/aws ec2 associate-address --instance-id={{ item.id }} 
--allocation-id eipalloc-b9df00dc


and get

Unable to locate credentials. You can configure credentials by running "aws 
configure".


so just need to solve that now. I configured aws for ubuntu user but i 
guess i need to configure for user that runs this shell command.
Thanks

On Friday, 25 September 2015 14:50:12 UTC+1, Brian Coca wrote:
>
> you are using python3 for a python2 app
>
>
>
> -- 
> Brian Coca
>

-- 


This message is private and confidential and for the exclusive use of the 
intended recipient(s). If you receive this email in error, please notify 
the sender immediately and delete all copies from your system. If you are 
not the intended recipient disclosure, distribution, copying or use of this 
communication is strictly prohibited. Any views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of IDG UK. Clients and suppliers can view our full terms and 
conditions at www.idg.co.uk/terms-and-conditions/


IDG Communications Ltd. Company Reg No: 1197840. Registered in England and 
Wales.

-- 
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/b1658a60-7cf3-4f69-aa13-4bc92029845a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] wait_for through bastion stalls

2015-09-28 Thread Khoa Nguyen
Hi David,

You can use delegate_to for wait_for.

Remove: connection: local
Add: remote_user: of delegate instance. For example: ubuntu


- hosts: localhost

  #connection: local

  gather_facts: False

Regards,
Khoa Nguyen

On Wednesday, June 17, 2015 at 11:06:04 PM UTC+7, David Pires wrote:
>
> I've added a 10s delay, no luck. 
>
> I must have something else configured incorrectly, I'll just replace my 
> wait_for with a pause for now, that works.
>
> On Tuesday, June 16, 2015 at 11:18:28 PM UTC-4, Brian Coca wrote:
>>
>> You might want to add a small delay to wait_for (10s is normally good). 
>>
>>
>>
>> -- 
>> Brian Coca 
>>
>

-- 
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/54529643-eea5-44d3-91a8-e188841aef75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] dynamic inventory with host files

2015-09-28 Thread Roy
Hi,

  We have a use case in which I want to run playbook on specific set of 
machines and same task on spot instances which belongs to same set of 
machines but we dont have entry into host file.

We have cluster of machines (on demand) and some spot instances. I want to 
deploy code to all these machines (on demand + spot instances). So when we 
deploy code we want to deploy to all machines in one playbook run. 

I am using python script to get the public ip of those spot instances.

I am looking a way to run playbook on on demand instances and one 
additional task inside the playbook which will call same playbook 


  role/hadoop/task/release.yml

   ---
- name: check out project from github
  git: >
 repo=g...@github.com:Abc/abc.git
 version=master
 dest=/srv/jobs-prod/abc_hadoop/
 force=yes
 key_file=/root/.ssh/{{ GIT_PRIVATE_KEY }}
  register: git_checkout
  when: branch == master and branch is defined
  run_once: True
  serial: 4
  tags:
- git_tag


Then I have playbook as following

# Fetches up to date remote branch to local machine

 

  tasks:

  # This task runs on inventry list provided
- include: role/hadoop/task/release.yml

 

 After this first task is done I want to run same play on spot instance as 
second task in the same playbook. Is there any way to do this ?
 

 

-- 
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/43781aef-6570-4592-b540-cd745a957b0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread Brian Coca
try:
library = 
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core:
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras




-- 
Brian Coca

-- 
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/CAJ5XC8mbH0mCx5ukJv-xt2m5ru2od7BxnrfU38C-zwkeMiGMNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
*with some testing it seems that the core modules do work but still no 
luck with proxmox*

*/etc/ansible/ansible.cfg*
inventory  = /etc/ansible/hosts
library = 
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core:
 
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras
remote_tmp = $HOME/.ansible/tmp
pattern= *
forks  = 5
poll_interval  = 15
sudo_user  = root
#ask_sudo_pass = True
#ask_pass  = True
transport  = smart
#remote_port= 22
module_lang= C

*ansible --version*
ansible 2.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = 
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core:
 
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras

*ansible-playbook proxmox.yml*
ERROR! 'proxmox' is not a valid attribute for a Play

The error appears to have been in '/home/ops/proxmox.yml': line 3, column 
3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# Create new containers
- proxmox: vmid=110 node='clawstah' api_user='root@pam' 



On Monday, September 28, 2015 at 3:11:18 PM UTC-7, Brian Coca wrote:
>
> try: 
> library = 
> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/core:
>  
>
> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules/extras
>  
>
>
>
>
>
> -- 
> Brian Coca 
>

-- 
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/be38f0f2-1a64-4c3e-8aaa-18ed801057f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] jinja2 loop and fact array

2015-09-28 Thread Trond Hindenes
I'm sorry if this has come up before - I couldn't find any answers directly 
related to my question.

I'm trying to use set_fact to set an array and use that in a for loop 
inside a template file.
In my playbook I have: 
set_fact: av_name="['av1', 'av2', 'av3']"

And in my template file I'm testing with:
{% for item in av_name %}
"this": "{{ item }}"
{% endfor %}

Here's my templated file - jinja2 doesn't seem to understand the array:
"this": "["
"this": "'"
"this": "a"
"this": "v"
"this": "1"
"this": "'"
"this": ","
"this": " "
"this": "'"
"this": "a"
"this": "v"
"this": "2"
"this": "'"
"this": ","
"this": " "
"this": "'"
"this": "a"
"this": "v"
"this": "3"
"this": "'"
"this": "]"

Hopefully I'm doing something wrong!


-- 
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/5e4f052d-1995-4019-a249-0e86b10339d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] include when not work

2015-09-28 Thread Steve Kieu
I guess it is time to try version 2 then. 

Thanks



On Monday, September 28, 2015 at 10:36:52 PM UTC+10, Brian Coca wrote:
>
> The 'when' is being applied to the included tasks so they should all 
> appear as skipped, before 2.0 there is no way to prevent the include 
> itself from happening. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/e87e6d15-3aef-40d7-8dc2-434007ec32ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] jinja2 loop and fact array

2015-09-28 Thread Brian Coca
set_fact:
av_name: ['av1', 'av2', 'av3']

or

{% for item in av_name|list %}



-- 
Brian Coca

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


Re: [ansible-project] include when not work

2015-09-28 Thread Brian Coca
the only effective difference is less output

-- 
Brian Coca

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


Re: [ansible-project] PPK failed to authenticate after encrypting

2015-09-28 Thread Brian Coca
vault currently only supports yaml data files, your private key is not
being decrypted with vault and you are passing the encrypted/base64
encoded version to ssh


-- 
Brian Coca

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


Re: [ansible-project] Proxmox module not recognized in playbook ? - Ansible 2.0

2015-09-28 Thread rreeves
*okay I have looked through ansible.cfg and changed this line*
library = 
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules

*sudo ansible --version*
ansible 2.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = 
/usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules

*still the same problem*
ERROR! 'proxmox' is not a valid attribute for a Play

The error appears to have been in '/home/ops/proxmox.yml': line 3, column 
3, but may
be elsewhere in the file depending on the exact syntax problem.

*git submodule status*
 a4ac171a070551f1ed17a9c09b41d2481ad779af lib/ansible/modules/core 
(remotes/origin/revert-1564-win_features_improvements_v2-26-ga4ac171)
 3c8c7168014234be339a42481d74f3954d47a4fc lib/ansible/modules/extras 
(heads/devel)

*Is there a better source for installing the development environment ?* 


On Monday, September 28, 2015 at 1:21:00 PM UTC-7, Brian Coca wrote:
>
> I would have said you are missing a 'git submodule init --recursive' 
> step .. but then you would not have any modules, if you are running 
> python2.7 it should find these in the python path, otherwise just try 
> setting in ansible.cfg the path directly for core and extras to the 
> subdirs of 
> /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg/ansible/modules
>  
>
>
>
> -- 
> Brian Coca 
>

-- 
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/2630484e-4ccf-49f8-ac53-f714d8b2a7ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.