[ansible-project] Ansible 2.5.0 Release Candidate 2 is available

2018-03-08 Thread mattdavi
Hi all- we're happy to announce that Release Candidate 2 of Ansible 2.5.0 is now available! How do you get it? -- All Ansible pre-releases in the 2.5 series will be published to PyPI. This is probably the easiest way for most

Re: [ansible-project] determining network os type?

2018-03-08 Thread Ganesh Nalawade
ansible_network_os is a reserved variable and need to be set manually. More details can be found here https://docs.ansible.com/ansible/devel/network/user_guide/platform_index.html Regards, Ganesh On Fri, Mar 9, 2018 at 11:17 AM, Marcos Georgopoulos wrote: > Hi, > > There are various network mod

[ansible-project] determining network os type?

2018-03-08 Thread Marcos Georgopoulos
Hi, There are various network modules for iOS,EOS, etc etc... What I was wondering is there a way to determine a hosts base os type so that the correct network module can be called? I have seen some sites reference 'ansible_network_os' like below. However I am not sure is this is simple a v

Re: [ansible-project] Re: Permission denied while copy with sudo (Related to issue 2837)

2018-03-08 Thread Toshio Kuratomi
There's a configuration option, remote_tmp. Setting that to a system directory (like /tmp or /var/tmp ) can fix this error. On Mar 8, 2018 5:04 PM, "Vamsi krishna" wrote: > Hi vincent, > > mee to facing the same issue... > changing the tmp directory means, what you mean?? > > you mean to change

Re: [ansible-project] Re: Permission denied while copy with sudo (Related to issue 2837)

2018-03-08 Thread Vamsi krishna
When i am creating directory i am getting permission denied... ansible version 2.4.3 "msg": "There was an issue creating /etc/ as requested: [Errno 13] Permission denied: b'/etc/' On Thursday, March 8, 2018 at 5:03:59 PM UTC-8, Vamsi krishna wrote: > > Hi vincent, > > mee to facing the

Re: [ansible-project] Re: Permission denied while copy with sudo (Related to issue 2837)

2018-03-08 Thread Vamsi krishna
Hi vincent, mee to facing the same issue... changing the tmp directory means, what you mean?? you mean to change that in our hosts can u explain litttle bit clear... On Friday, July 19, 2013 at 9:30:53 AM UTC-7, Vincent Hardion wrote: > > I have just pull the last version but it is the sam

[ansible-project] Re: Howto read variables from an vaut encrypted file

2018-03-08 Thread neccross9
unbeliveable ... but that was it !! Thanks a lot :) Am Mittwoch, 7. März 2018 22:07:53 UTC+1 schrieb necc...@gmail.com: > > Hi all, > > the following task may sound easy but actually it fails all the time ... > > I want to store my password in a variable and put it into an ansible-vault > encry

[ansible-project] Re: networking not idempotent

2018-03-08 Thread Mark Tovey
On Thursday, March 8, 2018 at 1:43:44 PM UTC-8, Mark Tovey wrote: > > > I am experimenting with the networking modules in Ansible to try to > understand how we can use Ansible to manage our network devices. To that > end, I have written a simple playbook to apply an ACL to a router. It >

[ansible-project] networking not idempotent

2018-03-08 Thread Mark Tovey
I am experimenting with the networking modules in Ansible to try to understand how we can use Ansible to manage our network devices. To that end, I have written a simple playbook to apply an ACL to a router. It works well, except I notice that each time the playbook is run, the change is

[ansible-project] Re: Ansible Playbook running for longtime/indefinitely for windows 2012 R2 Ansible Playbook

2018-03-08 Thread Tony Chia
Here are two things you can try Try putting the win_ping module in a task in a playbook and run it. Try adding -v (5 v for winrm connection debug info) to ansible-playbook On Wednesday, March 7, 2018 at 11:32:51 PM UTC-8, Namasivayam C wrote: > > > I am new to Ansible and I'm trying to config

[ansible-project] Re: Ansible Playbook running for longtime/indefinitely for windows 2012 R2 Ansible Playbook

2018-03-08 Thread Jordan Borean
We would probably need to see the playbook file and the output you are getting until it freezes so we can narrow down what task is taking forever. As for the HTTP 500 responses I don't think they are an issue, part of WinRM is to poll for command outputs and you get constant 500 responses from

[ansible-project] Re: Copy module

2018-03-08 Thread Malcolm Hussain-Gambles
It's not a network issue. Local and remote are localhost. The speed issues seem to be down to abuse of ansible. Just to process the files dictionary list into a sensible format took over three hours (I gave up) and used 12Gb of ram. Using a shell script takes less than a second. Ansible is doing a

[ansible-project] Retrieve EC2 Tags via Ansible

2018-03-08 Thread Anurag Sernapally
Hi All, I have an requirement to execute specific ansible task based on the ec2 tags thats been injected in the instance. I am using ansible version 2.2. Can someone let me know how can I get the list of ec2 tags? Below is the code snippet that I am trying to execute. Code: --- - hosts: "{{ h

[ansible-project] Cannot get password from a vault file

2018-03-08 Thread JiElPe-Fr38
Dear all, I am really stucked with this problem. I have a vault file which is referenced within ansible.cfg and its password is stored in a file referenced on the command line through --vault-password-file. This seems to be ok. My vault contains (silly example for trials): jenkins: totototo I

[ansible-project] cannot get remote_user in a callback plugin

2018-03-08 Thread Igor B.
Hi all, I am developing a callback plugin to print messages to hipchat when playbook starts and finishes, and some additional info like who is running the playbook. To get the username I tried 2 ways: 1. cli.options.remote_user -- outputs "None". 2. play.remote_user -- out

Re: [ansible-project] When hostnames have hyphens in them

2018-03-08 Thread Brian Coca
variables cannot have hyphens but hash/dictionary keys can for example, this would work: private_keys['host-name'] or private_keys[ansible_hostname] -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe f

[ansible-project] Re: Ansible-vault password file not found

2018-03-08 Thread JiElPe-Fr38
Thanks for the idea... In fact, I already used the verbose mode, so yes I can confirm that it uses the awaited config file. Which is not a good news, because it would have been a good reason for the problem. J-L Le jeudi 8 mars 2018 11:49:16 UTC+1, JiElPe-Fr38 a écrit : > > Dear all, > > I am

Re: [ansible-project] Howto read variables from an vaut encrypted file

2018-03-08 Thread Richard Sobey
My limited understanding is that this: root_pass_sirius: "{{ TesT1234 }}" ..is definting another variable called "TesT1234" rather than assigning the literal "TesT1234" to the variable "root_pass_sirius" like: root_pass_sirius: "TesT1234" On 8 March 2018 at 06:06, wrote: > Hi Brian, > > of co

Re: [ansible-project] Ansible-vault password file not found

2018-03-08 Thread Richard Sobey
You may want to check with "ansible-playbook -v ..." that ansible is picking the correct .cfg file. Richard On 8 March 2018 at 10:49, JiElPe-Fr38 <6bery...@gmail.com> wrote: > Dear all, > > I am "auto learning" ansible and currently try to understand how to use > vault. > To summarize things, I

[ansible-project] When hostnames have hyphens in them

2018-03-08 Thread Richard Sobey
Hi all, I've come across an issue which might be a showstopper for me; either way I wouldn't mind some advice. My aim is to lookup in a vaulted file the name of a variable that is based around the hostname of the server. My servers have hyphens in the hostname. I have got something like this: -

[ansible-project] Ansible-vault password file not found

2018-03-08 Thread JiElPe-Fr38
Dear all, I am "auto learning" ansible and currently try to understand how to use vault. To summarize things, I have created a vault.yml file in the vars directory, and included it in the main.yml task. Then, I put the vault password within a .vault_passwd file created at the same level than an

[ansible-project] "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'local_as'"

2018-03-08 Thread jaychandran subramanian
Hi I am trying solve this from past 2 days, Please help details : [WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting ansible 2.4.3.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/usr/share/my_modules'] ansible python

[ansible-project] Re: turn on boto debugging in Ansible (~/.boto)

2018-03-08 Thread MB
Had the same issue. Here's what I did to get Boto debug working. Maybe some of these steps are not needed, I didn't take the time to investigate more. 1) Created a ~/.boto.cfg file as you did, with the following content (I put my AWS credentials here on purpose): [Boto] debug = 2 [Credentials]