Re: [ansible-project] When I develop a module. how can I share it to the github ?

2017-03-23 Thread Kai Stian Olstad
On 24. mars 2017 06:27, Yang Mark.S wrote: Dear sir, I try to develop a module for switch device. and test it finished. how can I share my module to the github ? Have you read this ? https://docs.ansible.com/ansible/community.html#for-current-and-prospective-developers That page have a section

[ansible-project] Re: openstack os_project endpoint error

2017-03-23 Thread Lokeshwar K'seven
Hi Scott, Did you find a workaround for this issue? I am stuck at the same point now. Any help is appreciated. Regards, Lokesh On Friday, 19 February 2016 06:48:27 UTC-6, Scott wrote: > > > Thanks for the assistance. I'm wokring my way through that link :-) > -- You received this mes

[ansible-project] When I develop a module. how can I share it to the github ?

2017-03-23 Thread Yang Mark.S
Dear sir, I try to develop a module for switch device. and test it finished. how can I share my module to the github ? -- 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

Re: [ansible-project] F5 bigip_pool_member any way to update Priority Group?

2017-03-23 Thread Tim
Hey Scott, If it's not already in the pool_member module i would first suggest you open an issue about this at our f5-ansible repository and the change will percolate upstream to ansible core https://github.com/F5Networks/f5-ansible Beyond that, if your version of BIG-IP is >= 12.x, you can use

Re: [ansible-project] Ansible throws unreachable error when using dellos6 module

2017-03-23 Thread Madhu
Hi, Can you put ansible_connection=local in ansible.cfg and try ? Thanks, Madhu Sent from my iPhone > On Mar 22, 2017, at 10:48 PM, Chang Zhi wrote: > > Hi, I'm try to get switch's version info by using ansible. So I create a yaml > file like this: > > --- > - hosts: dell > connection: s

[ansible-project] F5 bigip_pool_member any way to update Priority Group?

2017-03-23 Thread Scott Frisbie
Ansible 2.1.1.0 Core. With our network, we have a system where we switch back and forth between two groups of servers. In the F5, we use iRules and priority groups to direct the traffic to the live group of servers. Right now, we have to go into the console manually and update the priority gr

[ansible-project] Re: Override the Ansible_ssh_password set in the dynamic inventory script

2017-03-23 Thread Matt Davis
Sure- you can override an inventory-set ansible_password with the vars keyword on a play or task: # for the whole play - hosts: thing_whose_password_has_changed vars: ansible_password: "{{ new_target_password }}" tasks: - ping: or # on a specific task - hosts: thing_whose_password_ha

[ansible-project] Re: ansible 2.3 win_copy fails when trying to get file from network drive

2017-03-23 Thread Matt Davis
Sorry, that should've been: - win_copy: ... (whatever args to win_copy) become: yes become_method: runas become_user: "{{ ansible_user }}" vars: ansible_become_password: "{{ ansible_password }}" On Thursday, March 23, 2017 at 5:54:55 PM UTC-7, Matt Davis wrote: > > The new Windows

[ansible-project] Re: ansible 2.3 win_copy fails when trying to get file from network drive

2017-03-23 Thread Matt Davis
The new Windows become stuff in 2.3 creates an "interactive" type logon session, so credential caches and transparent multi-hop works- it should take care of the auth issue (so it behaves like it would if you were sitting in front of the machine). There's currently a bug that only allows it to

[ansible-project] Override the Ansible_ssh_password set in the dynamic inventory script

2017-03-23 Thread Levi Blaney
Hey, I have a dynamic inventory script. The script sets these variables... "Server01"{ "ansible_host": "xxx.xxx.xxx.xxx", "ansible_ssh_host": "xxx.xxx.xxx.xxx", "ansible_ssh_pass": "", } That way when you spin up a new cloud host you can immediately c

[ansible-project] Re: ansible 2.3 win_copy fails when trying to get file from network drive

2017-03-23 Thread 'J Hawkesworth' via Ansible Project
Hmm. Is adding the client machine to the domain an option then? That way you could use Kerberos authentication delegation. Or. Here's a different idea... Use smbclient to collect whatever files you want from the share onto your ansible controller and then you can just win_copy them onto the w

[ansible-project] Re: win_share Module Failure - no real error message?

2017-03-23 Thread 'J Hawkesworth' via Ansible Project
Nice one. Since the PR mentioned above has been merged, I suggest testing with latest development version of ansible. Jon -- 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, sen

[ansible-project] win_feature--Choose only selective sub features

2017-03-23 Thread 'J Hawkesworth' via Ansible Project
So I think you can supply this module with a comma separated list of features to add. If I recall, you can generate a list of all the modules and submodules by running the following PowerShell Get-Feature | Out-GridView I think you should be able to pick out the exact features you need from th

[ansible-project] Re: win_feature--Choose only selective sub features

2017-03-23 Thread Matt Davis
That's the default behavior- just don't specify include_sub_features or include_management_tools, and specify the exact features you want. On Thursday, March 23, 2017 at 11:49:35 AM UTC-7, Suporter wrote: > > is it possible to choose only selective sub features ? for example: IIS > has so many s

Re: [ansible-project] Single quotes in Ansible shell module

2017-03-23 Thread Arvind Ks
I need to run this command. How do i escape the commands. find / -xdev \( -perm -4000 -o -perm -2000 \) -type f | awk '{print "-a always,exit -F path=" $1 " -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged"}' On Sunday, April 24, 2016 at 7:06:53 PM UTC+5:30, Johannes Kastl wrote: > > O

[ansible-project] Re: win_share Module Failure - no real error message?

2017-03-23 Thread Jordan Borean
The the win_share module currently catches all exceptions and doesn't output the exception message in the final JSON output. I've raised a PR to add this feature as I've come across it just recently https://github.com/ansible/ansible/pull/22763 On Thursday, March 23, 2017 at 3:40:49 AM UTC+10,

Re: [ansible-project] Re: Ansible copy as remote user Issue

2017-03-23 Thread Kai Stian Olstad
On 23. mars 2017 22:31, jzm2001 wrote: yes, i was aware of the permission denied and I checked the permissions on the entire FS directory structure being written to and all the perms are the same across all 15 hosts. I can create directories/files in /tmp so can the user websphe I sudo into. I

[ansible-project] Re: Ansible copy as remote user Issue

2017-03-23 Thread jzm2001
I changed my hosts file to only have the working host and this is the output with - option: $ ansible-playbook -i inventory/staging - site.yml /home/jm6239/python26/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Pytho

[ansible-project] Re: Ansible copy as remote user Issue

2017-03-23 Thread jzm2001
yes, i was aware of the permission denied and I checked the permissions on the entire FS directory structure being written to and all the perms are the same across all 15 hosts. I can create directories/files in /tmp so can the user websphe I sudo into. I set my playbook to do serial: 1 and ex

[ansible-project] Ansible copy as remote user Issue

2017-03-23 Thread Phonthip Namkaew
There is a permission denied: "msg": "There was an issue creating bin-tmp as requested: [Errno 13] Permission denied: 'bin-tmp' Maybe not all server are set up the same way (rights, owner, groups). Can you create the dir manually being the become_user on the host? Try to create a dir /tmp/bin-

[ansible-project] win_feature--Choose only selective sub features

2017-03-23 Thread groupfiles14
is it possible to choose only selective sub features ? for example: IIS has so many sub features, if we install them all , there would be unnecessary footprint, so is it possible to pick and choose and install the required sub features? -- You received this message because you are subscribed t

[ansible-project] Re: ansible 2.3 win_copy fails when trying to get file from network drive

2017-03-23 Thread patrick korsnick
Hi Jon, Thanks for the input. You're correct about the number of authentication hops- the client machine is not on a domain, but uses domain credentials to map the network share. So in the group_vars file there are only the non-domain credentials. I was able to use win_copy to copy a local file

Re: [ansible-project] Newbie question regarding playbook execution logic

2017-03-23 Thread Kai Stian Olstad
On 23. mars 2017 18:54, tentacle_bonzoid wrote: What's the correct approach here? Is attempting to use a top-level "patch_everything.yml" not the best practice? Or is there some "fork and forget and run everywhere individually" option? Note, I do not want to fire and forget individual *tasks*, I

[ansible-project] Newbie question regarding playbook execution logic

2017-03-23 Thread tentacle_bonzoid
Hi, i'm probably hitting a basic newbie misunderstanding here. What would be the best practice approach to write a playbook that does something like: Call a playbook like patch_hosts.yml , targetting all hosts. patch_hosts will run a yum update. But first, it'll detect if the host is in a cluste

[ansible-project] Yum failing on with_items for target hosts (packages already installed)

2017-03-23 Thread James
Hi, I'm sorry if this issue has been posted/discussed before, but I tried searching and couldn't find anything related. I get the following output when I try to run a simple playbook. [root@atk ansible]# ansible-playbook pre_identix.yml --ask-become-pass SUDO password: PLAY [all] ***

Re: [ansible-project] Re: call a role with different parameters from the same playbook

2017-03-23 Thread Kai Stian Olstad
On 23. mars 2017 16:42, Eric Belhomme wrote: Hello, Thanks to you suggestion, I re-factored my code and putting the variables into vars/meddle.yml : - ssl_certs: - mailgate: key: '/etc/ssl/private/letsencrypt_meddle.example.com_mailgate.key' csr: '/tmp/letsencrypt_meddle.example.c

[ansible-project] Re: vsphere_guest gather_vmware_facts not returing ip addresses of vms running in esx hypervisor v5.5.0

2017-03-23 Thread daan
Looking at vmware_gather_facts, about to be introduced in 2.3 (there is an rc1 tag if you are adventurous), Im doing something like this: --- - name: Discover vSphere guest hosts: localhost tasks: - name: Gather instance facts vmware_guest_facts: hostname: "{{ ansible_env.VMWARE_S

[ansible-project] Ansible throws unreachable error when using dellos6 module

2017-03-23 Thread Chang Zhi
Hi, I'm try to get switch's version info by using ansible. So I create a yaml file like this: --- - hosts: dell connection: ssh gather_facts: no vars: cli: username: xxx password: xxx tasks: - name: "Get Dell EMC OS6 Show version" dellos6_command: commands: ['show ve

[ansible-project] Ansible on Xenial can no longer find six_py file

2017-03-23 Thread Charles Appel
Last I used ansible was three days ago; this morning I attempted to run and receive the following error: ansible --version Traceback (most recent call last): File "/usr/bin/ansible", line 43, in import ansible.constants as C File "/usr/lib/python2.7/dist-packages/ansible/constants.py",

[ansible-project] variable param with start

2017-03-23 Thread Manoj K
Is it possible to use star to assume the remaining path. set_fact: tomcat_native: "/tmp/tomcat-native-*/" Regards, Manoj K -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving ema

[ansible-project] Ansible copy as remote user Issue

2017-03-23 Thread jzm2001
I'm new to ansible...so bear with me. I created a simple playbook that takes a 0 byte file and copies it to remote hosts under a different user, creating the directory to put it in prior to the copy. We have a mix of python 2.6 and 2.7 on our Linux hosts (running redhat 6). The execution is s

Re: [ansible-project] Re: How to create with_items, on a submember?

2017-03-23 Thread Kai Stian Olstad
On 23. mars 2017 13:44, Bhavin Parmar wrote: Hey Kai, Thanks for your guidance. I am just looking for vol-0e0516ea962X as output. Same way I have to grab various parts from output, to convert them in key : value pair, to store in YAML file. Please, can you suggest how to only get the partic

[ansible-project] Re: call a role with different parameters from the same playbook

2017-03-23 Thread Eric Belhomme
Hello, Thanks to you suggestion, I re-factored my code and putting the variables into vars/meddle.yml : - ssl_certs: - mailgate: key: '/etc/ssl/private/letsencrypt_meddle.example.com_mailgate.key' csr: '/tmp/letsencrypt_meddle.example.com_mailgate.csr' crt: '/etc/ssl/certs/le

[ansible-project] Re: OSError: [Errno 32] Broken pipe

2017-03-23 Thread Mike Fennemore
https://github.com/ansible/ansible/pull/16515 think this is similar? On Friday, December 30, 2016 at 12:21:44 PM UTC+1, Kevin Csuka wrote: > > Ansible version: 2.1.2.0 > > My task: > > - name: "Managing groups with gid set" become: true group:name: "{{ > item.value.name }}"state: "{{ it

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

2017-03-23 Thread Brian Coca
Also note that the 'displayed' timeout (12s) is the default value, not inferred from ssh_args. -- 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 e

Re: [ansible-project] for loop in a playbook task

2017-03-23 Thread Brian Coca
with_ <= is basically a for loop, the task runs 'for item in with_: parameters', with_ always returns a list, which the task iterates over and the 'loop variable' is 'item'. you can use loop_control to change the loop variable. -- Brian Coca -- You received this message because you are

[ansible-project] for loop in a playbook task

2017-03-23 Thread Eric Marquez
Is it possible to create a for loop in a task? I have a switch Access-Control list I need to build. In my host_vars file I have a YAML object that contains all the source and destination addresses in an array. This way I can also control the sequence number without having to explicitly docume

Re: [ansible-project] Re: How to create with_items, on a submember?

2017-03-23 Thread Bhavin Parmar
Hey Kai, Thanks for your guidance. I am just looking for vol-0e0516ea962X as output. Same way I have to grab various parts from output, to convert them in key : value pair, to store in YAML file. Please, can you suggest how to only get the particular part? Like we can get with following ma

Re: [ansible-project] Re: How to create with_items, on a submember?

2017-03-23 Thread Kai Stian Olstad
On 23.03.2017 05:17, Bhavin Parmar wrote: *Same way another looping issue is as follow (actual code):* - name: "Task 2: Fetch EC2 details" ec2_remote_facts: aws_access_key: '{{ AwsAccesskey }}' aws_secret_key: '{{ AwsSecretkey }}' region: '{{ region }}' filters:

Re: [ansible-project] Re: How to create with_items, on a submember?

2017-03-23 Thread Kai Stian Olstad
On 23.03.2017 05:09, Bhavin Parmar wrote: *Same way another looping issue is as follow (actual code):* It's no issue here, it's working as designed. To understand, we need to now what you would expect. - name: "Task 2: Fetch EC2 details" ec2_remote_facts: aws_access_key: '{{ AwsA

Re: [ansible-project] Re: How to create with_items, on a submember?

2017-03-23 Thread Kai Stian Olstad
On 23.03.2017 03:55, Bhavin Parmar wrote: *When trying to access with_items, with following code:* - name: "Task 3: Add string instance_id to file for each instance" shell: 'printf "{{ item.volume_id }}"' #shell: 'printf "{{ item.volume_id }}" > /home/ansible/playbooks/common/variab

[ansible-project] Re: Ansible DSC integration - coming to main release?

2017-03-23 Thread 'J Hawkesworth' via Ansible Project
Trond certainly is - see this entry on his blog: http://hindenes.com/trondsworking/2016/12/21/ansible-windows-what-weve-learned-from-6-months-in-production/ On Thursday, March 23, 2017 at 8:39:23 AM UTC, Sam wrote: > > > Matt's insight regarding the roadmap is very useful, however is anyone >

[ansible-project] Re: Ansible DSC integration - coming to main release?

2017-03-23 Thread Sam
Matt's insight regarding the roadmap is very useful, however is anyone using the win_dsc5 module in the wild? I am due to start some testing today so if there are any glaring gotchas that I can avoid please do share - it will be much appreciated. -- You received this message because you are s

[ansible-project] Re: Ansible DSC integration - coming to main release?

2017-03-23 Thread Sam
Matt's insight regarding the roadmap is very useful, however is anyone using the win_dsc5 module in the wild? I am due to start some testing today so if there are any glaring gotchas that I can avoid please do share - it will be much appreciated. On Wednesday, 22 March 2017 13:29:34 UTC, Sam wr

[ansible-project] Re: Ansible DSC integration - coming to main release?

2017-03-23 Thread Sam
Hi Matt, Thanks for the reply. I hope you didn't take my comments re: your appearance on the podcast as a criticism! I understand that Windows doesn't really fit cleanly with your current implementation and that there are significant decisions to be made. I have both opinions and a shovel :)