Re: [ansible-project] Apt-get simulate command

2016-08-23 Thread Rémi Morel
Thanks for the advice ! Le lundi 22 août 2016 15:34:49 UTC+2, Kai Stian Olstad a écrit : > > On 22. aug. 2016 09:19, Rémi Morel wrote: > > Hello, > > > > I have spend a lot of time to find a solution at this issue. > > I have a task : > > > > - name: check updated package (Debian) > >

Re: [ansible-project] Re: group_vars behavior changed in 2.1?

2016-08-23 Thread David Resnick
OK, I see that this behavior change is being shown as a bug fix in 2.1.2: * Fixed a bug where a group_vars or host_vars directory in the current > working directory would be used (and would take precedence) over those in > the inventory and/or playbook directory. It would be nice if the

Re: [ansible-project] Re: group_vars behavior changed in 2.1?

2016-08-23 Thread David Resnick
Is it possible that previously Ansible looked for group_vars in the current directory (i.e. a sub-directory of the current one)? Because of multiple inventory files, I put inventory files in a sub-directory; in this structure: project/ ├── group_vars/ │ └── all.yml ├── playbooks/ │

[ansible-project] ansible-playbook command, remote host unreachable, but ssh is fine

2016-08-23 Thread jguillette
Hi there, I'm new to Ansible, and jumping into it for a project at work. Right now I'm trying to update our AWS instance machine using ansible-playbook. More specifically, I'm running ansible-playbook --private-key ~/keys/OasSDev.pem --sudo linux-toolbox.yml - vvv What I'm getting is that

Re: [ansible-project] Recording generated template configurations

2016-08-23 Thread Soren Olegnowicz
Thanks for the tip about delegation, donno how I have not used it yet. Do you have to change security settings when you do though? I am getting an SSH unreachable error on just that one delegate task (not the rest of them). On Monday, August 22, 2016 at 11:45:58 AM UTC-4, Josh Smift wrote: > >

Re: [ansible-project] Recording generated template configurations

2016-08-23 Thread Josh Smift
SO> Thanks for the tip about delegation, donno how I have not used it yet. SO> Do you have to change security settings when you do though? I am SO> getting an SSH unreachable error on just that one delegate task (not SO> the rest of them). I think your Ansible control host would need to be able

Re: [ansible-project] Ansible documentation search function

2016-08-23 Thread Kai Stian Olstad
On 23. aug. 2016 22:47, Matt Martz wrote: There is search built into the docs page. Go to http://docs.ansible.com/ansible/index.html In the bottom right hand corner of your browser there should be a black box that says "Search this site" Clicking that box will produce a javascript modal with

Re: [ansible-project] Ansible documentation search function

2016-08-23 Thread Matt Martz
There is search built into the docs page. Go to http://docs.ansible.com/ansible/index.html In the bottom right hand corner of your browser there should be a black box that says "Search this site" Clicking that box will produce a javascript modal with a search box and search results. On Tue,

Re: [ansible-project] Ansible documentation search function

2016-08-23 Thread Kai Stian Olstad
On 23. aug. 2016 16:06, Stefan Klatt wrote: Hi, does anybody know where search function on the ansible doc homepage is? Probably I'm blind, but I doesn't find this function. Your not blind, I also miss this feature. That's why I build my one copy of the documentation. Another way is to use

[ansible-project] Re: win_package - missing product id error

2016-08-23 Thread 'J Hawkesworth' via Ansible Project
Yes, I have hit this with notepad++. I think it hangs because a dialog is prompting the user for some input. I think there's a chocolatey package for it, so probably the easiest way to get round it is to use chocolatey. I think there's a zip file version as well if you don't mind scripting

[ansible-project] Re: win_package - missing product id error

2016-08-23 Thread Anfield
Any ideas anyone? -- 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] Ansible 2.1.0 - How to avoid dashes error with rendering templates (like my.cnf)

2016-08-23 Thread Sergio (cepxio)
Hi all! I am new in Ansible and this Group, so thanks in advance for the patience and help. I'm writing a Playbook Roles for install and setup MySQL RDBMS on Linux (CentOS), and I get an error with the template module when ansible parses the my.cnf.j2. Here the msg err TASK [mysql : Copy

Re: [ansible-project] Re: Ansible docs help

2016-08-23 Thread Donald Blodgett
This is definitely a good start and provides a leaping off point to discover what these do. It is listing far more than I thought there was by reading through the other documentation on the site, very informative. On Tuesday, August 23, 2016 at 8:45:17 AM UTC-4, Brian Coca wrote: > > They are

[ansible-project] Re: win_package - missing product id error

2016-08-23 Thread Anfield
Also took the product id from the registry of my machine and tried that in the playbook also, same result > > -- 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

Re: [ansible-project] stdout looks empty, but 'when' thinks it isn't?

2016-08-23 Thread Peter Sprygada
Also, I noticed you are using ios_command to send configuration statements. Please switch to using ios_config. In 2.2, ios_command will no longer allow you to send configuration commands On Tue, Aug 23, 2016 at 5:49 AM, 'Steve Kersley' via Ansible Project < ansible-project@googlegroups.com>

[ansible-project] Module "include_vars" fails with when using "file" parameter

2016-08-23 Thread Frank Thommen
Hi, when using the include_module with the "file" parameter, it fails with AttributeError: 'NoneType' object has no attribute 'startswith'. This works fine: - testmyvars_1.yml --- --- - hosts: '{{ target }}' gather_facts: no tasks: - include_vars: ./myvars_1.yml

[ansible-project] How to make global variables for a short playbook?

2016-08-23 Thread Mcnilla
Hi, I want to share global variables for a short playbook. The problem is, I need to run some commands on all hosts, then some commands on one node, then some commands on all nodes again. I don't want to repeat with_vars for every play, like I did here (code below) and I don't want to create a

[ansible-project] lxd_container changed on each playbook run

2016-08-23 Thread Jonathan Rosser
I create containers using the lxd_containers module. The "apply_container_configs" action is run each time the playbook runs so the task is "changed" on every playbook run. Here is the verbose output http://pastebin.com/Yp5uJ7xQ Ubuntu 16.04 ansible --version ansible 2.2.0 --- container_list:

[ansible-project] Playbook freezes at "getting output with communicate()"

2016-08-23 Thread Ahmed
Hello, I'm using Ansible to manage configuration of a device that has a similar terminal to Cisco devices, The below playbook works fine but for every 4 or 5 times it freezes at sometimes. I use Ansible-Debug=1, when the playbook freezes, it does at this line: *3385 1471938419.90376: getting

[ansible-project] Module "include_vars" fails with when using "file" parameter

2016-08-23 Thread Frank Thommen
Hi, when using the include_module with the "file" parameter, it fails with AttributeError: 'NoneType' object has no attribute 'startswith'. This works fine: - testmyvars_1.yml --- --- - hosts: '{{ target }}' gather_facts: no tasks: - include_vars:

[ansible-project] Module "include_vars" fails with when using "file" parameter

2016-08-23 Thread Frank Thommen
Hi, when using the include_module with the "file" parameter, it fails with AttributeError: 'NoneType' object has no attribute 'startswith'. This works fine: - testmyvars_1.yml --- --- - hosts: '{{ target }}' gather_facts: no tasks: - include_vars: ./myvars_1.yml

[ansible-project] Ansible documentation search function

2016-08-23 Thread Stefan Klatt
Hi, does anybody know where search function on the ansible doc homepage is? Probably I'm blind, but I doesn't find this function. Stefan -- *CaC, Computer and Communication* Inhaber Stefan Klatt End-2-End Senior Network Consultant Triftstrasse 9 60528 Frankfurt Germany USt-IdNr.: DE260461592

[ansible-project] Unable to ping

2016-08-23 Thread RICCARDO RUSSO
Hello, the following *ansible 2.1.1.0* command hangs: ansible@ansible:~/playbooks/APS/test$ ansible -vvv 10.162.38.161 -m ping -i /home/ansible/playbooks/APS/inventory/inventory.cfg Using /etc/ansible/ansible.cfg as config file <10.162.38.161> ESTABLISH SSH CONNECTION FOR USER: jboss

Re: [ansible-project] stdout looks empty, but 'when' thinks it isn't?

2016-08-23 Thread 'Steve Kersley' via Ansible Project
Aha - yes, had missed that in the output. Have been trying to work out why it differed from the example use of 'when' to check for empty stdout in the documentation, but I now see in the module docs for ios_command, that since it takes a list of commands as input, it also returns a list of

[ansible-project] Re: win_package - missing product id error

2016-08-23 Thread Anfield
Changed my playbook to the following but it seems like it stalls and doesnt provide an final error #Install Notepad 6.9.2 from specified repository - hosts: all gather_facts: false tasks: - name: Install Notepad 6.9.2 Package win_package: path:

[ansible-project] Re: win_package - missing product id error

2016-08-23 Thread Anfield
so is there no way I can use a dummy id? Id have to install on another machine first and then find the product_id? -- 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] Recording generated template configurations

2016-08-23 Thread Brian Coca
you can do in 1 task: - template: delegate_to: "{{item}}" with_items: - "{{inventory_hostname}}" # or ansible_host, depends on your inventory - central-host -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Running playbook ios_command through bastion host

2016-08-23 Thread Bharath Bharadwaj
Thank you! It was ssh by default, it is just I did not have paramiko installed on my jump host, once that was done the connectivity was successful. Regards, On Tuesday, August 23, 2016 at 8:50:30 AM UTC-4, Kai Stian Olstad wrote: > > On 23. aug. 2016 14:15, Bharath Bharadwaj wrote: > >

Re: [ansible-project] Re: group_vars behavior changed in 2.1?

2016-08-23 Thread Brian Coca
Ansible has no concept of 'project', group/host_vars MUST be adjacent to either inventory or the play and should be picked up automatically if they match an group or host from inventory. The vars_files will look for relative paths in a 'vars/' directory adjacent to play or relative to the play,

Re: [ansible-project] Running playbook ios_command through bastion host

2016-08-23 Thread Kai Stian Olstad
On 23. aug. 2016 14:15, Bharath Bharadwaj wrote: Thanks, what should i set the connection as to make sure it goes through the bastion host? I have already setup the ssh config and ansible.cfg with the ssh args, since you mentioned connection= local it won't go from bastion, i want to change

Re: [ansible-project] Re: Ansible docs help

2016-08-23 Thread Brian Coca
They are now listed, but no additional information, yet http://docs.ansible.com/ansible/playbooks_directives.html -- 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

Re: [ansible-project] Running playbook ios_command through bastion host

2016-08-23 Thread Bharath Bharadwaj
Thanks, what should i set the connection as to make sure it goes through the bastion host? I have already setup the ssh config and ansible.cfg with the ssh args, since you mentioned connection= local it won't go from bastion, i want to change this to go through bastion host. Thank you. On

Re: [ansible-project] Re: Ansible docs help

2016-08-23 Thread Werner Flamme
Well, I first looked into , and followed the links mentioned there :) I'm lacking time to do real deep research, so I'm still not good at playbooks, but up to now they do what I want, even it it takes me quite some time to get there :).

Re: [ansible-project] Running playbook ios_command through bastion host

2016-08-23 Thread Kai Stian Olstad
On 17. aug. 2016 12:21, Bharath Bharadwaj wrote: Hi All, I have followed instructions on setting up bastion host from this article "https://gagor.pl/2016/04/use-bastion-host-with-ansible/; while I'm able to connect to my cisco switch through bastion host from a command line by executing "ssh -F

[ansible-project] Re: winrm Unable to connect to windows10 desktop

2016-08-23 Thread 'J Hawkesworth' via Ansible Project
So ... you are getting connection refused. So winrm is connecting but isn't happy with something. Have a look in the event logs on the windows box to see if there is anything appearing when you attempt to connect. Actually I think its possible that the problem is your inventory file. I

[ansible-project] Re: Running playbook ios_command through bastion host

2016-08-23 Thread Bharath Bharadwaj
Hi, can anyone give a help on this? On Thursday, August 18, 2016 at 12:41:38 PM UTC-4, Bharath Bharadwaj wrote: > > Hi All, > > I have followed instructions on setting up bastion host from this article " > https://gagor.pl/2016/04/use-bastion-host-with-ansible/; while I'm able > to connect to my