Re: [ansible-project] Azure: no action detected in task

2017-03-11 Thread Kai Stian Olstad
On 11. mars 2017 00:08, Frank Montyne wrote: I installed the Azure Python SDK 2.0.0rc5 using pip and ansible 2.0.0.2 using apt on a Ubuntu 16.04 machine. I also created a Azure AD service principle and added the information to ~/.azure/credentials. When I try to run a playbook that uses one of th

Re: [ansible-project] New here and could use some input (aws, ec2_vol, boto3)

2017-03-11 Thread Kai Stian Olstad
On 10. mars 2017 16:25, Matthew Coltman wrote: This is my first time attempting to contribute here and I'm mainly after a bit of a sanity check. This is the issue I'm looking at: https://github.com/ansible/ansible/issues/21588 The module currently uses boto but boto3 is needed to modify volumes

[ansible-project] Re: Ansible Jump thru Bastion host

2017-03-11 Thread rajeev
Thanks for input, but it still does not work for me. Here are my configs/errors. ssh -F .ssh/config, works fine , just fails thru Ansible ansible.cfg: ssh_args = -F /opt/ansible/.ssh/config /opt/ansible/.ssh/config: Host 10.116.10.114 Hostname 10.116.10.114 User duttr IdentityFile /opt/

[ansible-project] vmware_guest or vsphere_guest - Mulitple SCSI devices

2017-03-11 Thread Adam Kile
We've started using Ansible to automate some VM builds within some of our environments. For one of our builds, we have a VM which has about 20 disks. When using vmware_guest, if we add all 20 disks, the task bombs with: fatal: [127.0.0.1]: FAILED! => {"changed": true, "failed": true, "msg": "

[ansible-project] Raise Exception("Cannot import pyOpenSSL")

2017-03-11 Thread Tiago Pimpão
Hi there, I'm getting this error when running ansible. [root@localhost ansible]# ansible windows -i hosts -m win_ping -vvv Using /etc/ansible/ansible.cfg as config file An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/usr/lib/python2

[ansible-project] Re: Cannot get when to work in playbook

2017-03-11 Thread Dinesh Patra
This really helped me. Thank you Brian On Monday, October 17, 2016 at 12:15:35 PM UTC-5, Kane Kennedy wrote: > > Hi can anyone help, this is doing my nut in. > > I cannot get the correct repo to install dependent on the OS family and > release, I have 7 repos and need to identify RHEL, SL and O

[ansible-project] New here and could use some input (aws, ec2_vol, boto3)

2017-03-11 Thread Matthew Coltman
Hey all, This is my first time attempting to contribute here and I'm mainly after a bit of a sanity check. This is the issue I'm looking at: https://github.com/ansible/ansible/issues/21588 The module currently uses boto but boto3 is needed to modify volumes. I think the best way to handle thi

[ansible-project] Azure: no action detected in task

2017-03-11 Thread Frank Montyne
I installed the Azure Python SDK 2.0.0rc5 using pip and ansible 2.0.0.2 using apt on a Ubuntu 16.04 machine. I also created a Azure AD service principle and added the information to ~/.azure/credentials. When I try to run a playbook that uses one of the Azure rm module I always get the same err

[ansible-project] Ansible Tower 3.1.1 fails to pull down roles using galaxy on project updates

2017-03-11 Thread Jonathan Sabo
Hello, In Ansible Tower 3.1.1 assuming you have a project_dir/roles/requirements.yml Tower is supposed to use Galaxy to download the roles for you. The playbook installed by Tower 3.1.1 has the following task: - name: fetch galaxy roles from requirements.yml command: ansible-galaxy in

[ansible-project] Re: Ansible Jump thru Bastion host

2017-03-11 Thread Simon Wydooghe
It's in the docs: http://docs.ansible.com/ansible/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to On Saturday, March 11, 2017 at 2:03:37 AM UTC+1, rajeev wrote: > > Hello All, > > In my environment, Ansible server (A) does not have trust access to its >

[ansible-project] Re: IP address to hexadecimal conversion

2017-03-11 Thread Mischa ter Smitten
You might want to have a look at the netaddr package: http://netaddr.readthedocs.io/en/latest/tutorial_01.html On Saturday, March 11, 2017 at 5:07:04 PM UTC+1, Madhusudhanan Santhanam wrote: > > Hi, > > I want to convert the IP address to hexadecimal format. Can you please > tell me how to do

[ansible-project] For loop verification from remote host

2017-03-11 Thread Madhu
Hi, I want to verify the routes getting from remote host to a local variable. Local variable have the routes in the list. Can you guys please tell me how to do it with an example? Below is my playbook with the local variable storing the routes. - name: Generate the routes and store in file

[ansible-project] IP address to hexadecimal conversion

2017-03-11 Thread Madhu
Hi, I want to convert the IP address to hexadecimal format. Can you please tell me how to do it in ansible/jinja2? Below is my playbook. - name: Generate the routes and store in file set_fact: variable: "[{% for i in range(0,256,16) %}{% for j in range(0,256,1) %}'120.100.{{ j

Re: [ansible-project] Timeout problem with far distance host

2017-03-11 Thread Jürgen Haas
It's really strange. Still getting that timeout error although it is set differently: TASK [Upgrade packages] task path: /opt/ansible/playbooks/sanity.yml:36 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/packagin