[ansible-project] wait_for not_contains doesn't work

2019-01-24 Thread Sahar
I'm trying to make sure "maximum 512" doesn't exist in my config: - name: check if the parameters has been changed to 1024 asa_command: commands: - show run | i message-length maximum wait_for: 'result[0] not contains "maximum 512"' Getting the following error:

[ansible-project] Automating VMware migrations

2019-01-24 Thread Mario Zamora
Hello, I have a playbook that I'm working on to migrate VMs to a new ESX host. I finally got 1 maybe 2 parts working where I can power-off the machine and power-on again. Here's where the maybe comes into play. When I run the playbook I can see the VM power-off and immediately power-on

Re: [ansible-project] Need Debug Output

2019-01-24 Thread Diptajeet Khan
Hi All, Any hints to 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

Re: [ansible-project] Need Debug Output

2019-01-24 Thread Jonathan Lozada De La Matta
https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html#cmdoption-ansible-playbook-v On Thu, Jan 24, 2019 at 6:36 PM Diptajeet Khan wrote: > Hi All, > > Any hints to this? > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. >

Re: [ansible-project] Need Debug Output

2019-01-24 Thread Diptajeet Khan
Hi Jonathan, Didn't get what is meant by following the link. Best Regards Diptajeet On Fri, Jan 25, 2019, 5:27 AM Jonathan Lozada De La Matta < jloza...@redhat.com wrote: > > https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html#cmdoption-ansible-playbook-v > > On Thu, Jan 24, 2019

[ansible-project] Re: getting error while checking which java using ansible

2019-01-24 Thread Sanjay
Either you can set/edit default PATH for java bin in /etc/sudoers (visudo) by editing Defaultssecure_path = /sbin:/bin:/usr/sbin:/usr/bin Or you can set environment while executing ansible-playbook --- - name: "checking the java version" hosts: host remote_user: myremoteuser

[ansible-project] How to update host file using ansible

2019-01-24 Thread Pradeep Ghorpade
Hello Team, I am looking ansible playbook which will update host file in below scenario. I have 2 group server both are aws instance. [test] servername [test1] servername1 I want to update host file on test group server with test1 server details like ip address and hostname. I dont want to

[ansible-project] Need Debug Output

2019-01-24 Thread Diptajeet Khan
Hi, Need help to fetch output from the below output message. Bascially I need to extract "packet_loss", "packets_rx", "packets_tx", "rtt_avg", "rtt_max" & "rtt_min" for each "item". Trying to use the code as Code =: - debug: var: "{{ item['packet_loss'] }}" with_items: "{{

Re: [ansible-project] Need Debug Output

2019-01-24 Thread Diptajeet Khan
Tried however doesnt work. => template error while templating string: expected name or number. String: {{{output.results._ansible_item_label.{item' On Thursday, January 24, 2019 at 7:01:04 PM UTC+5:30, Karthik Chandrashekar wrote: > > May be you could try something like this. Register your

[ansible-project] Re: How to update host file using ansible

2019-01-24 Thread Pradeep Ghorpade
On Thursday, January 24, 2019 at 8:10:47 PM UTC+5:30, Pradeep Ghorpade wrote: > > Hello Team, > > I am looking ansible playbook which will update host file in below > scenario. > > I have 2 group server both are aws instance. > [test] > xyz > > [test1] > abc > > I want to update host file on

Re: [ansible-project] Need Debug Output

2019-01-24 Thread Karthik Chandrashekar
May be you could try something like this. Register your output to some variable let's call it X. Then try to debug like below example. Am exactly sure but, you can give a try. var="{X.results._ansible_item_label.{item}}" with_item: - packet_lose - packet_rx On Thu 24 Jan, 2019, 6:51 PM

[ansible-project] is there a way to exit an included file but continue the play?

2019-01-24 Thread Josef Fortier
I've developed a style where I use a lot of includes of small snippets to assemble bigger plays. I'd like to be able to do a test a condition at the top of an include, and skip the rest of the include if the condition is not met. I know I can do this with blocks, but a "return" or "continue"

[ansible-project] Ansible-Expect command issue

2019-01-24 Thread mahikrishna1729
We are trying to automate Vault creation(internal component) and initialization using ansible scripts but we are facing issue in expect module expect module responses are not getting the inputs given. Below is the script which I have tried and error I am facing. Please let me know if

[ansible-project] How do you specify Two Private Static IPs to different NIC cards during EC2 creation?

2019-01-24 Thread Joe Langdon
My current use case requires me to do that following Create 50 Linux CentOS 7 boxes. Eth0 must be 172.30.0 {80-120} on Subnet A Eth1 must be 172.30.1.{80-120) on Subnet B Note sure how to do this after reading the documentation,.

Re: [ansible-project] Ansible-Expect command issue

2019-01-24 Thread Kai Stian Olstad
On 24.01.2019 18:33, mahikrishna1...@gmail.com wrote: We are trying to automate Vault creation(internal component) and initialization using ansible scripts but we are facing issue in expect module expect module responses are not getting the inputs given. Below is the script which I have

[ansible-project] An unexpected error while registering a variable - "unhashable type: 'list'"

2019-01-24 Thread Michał Markiewicz
Hi, I'm trying to automate the process of setting up kubernetes cluster for training purposes. The tasks to register the command for joining workers to a cluster is as follows: - name: get join token for workers shell: kubeadm token create --print-join-command register: token I run the

Re: [ansible-project] An unexpected error while registering a variable - "unhashable type: 'list'"

2019-01-24 Thread Matt Martz
I'd have to guess that you gave a list to delegate_to somewhere. Instead of a single value On Thu, Jan 24, 2019 at 12:49 PM Michał Markiewicz < michalmarkiewic...@gmail.com> wrote: > Hi, I'm trying to automate the process of setting up kubernetes cluster > for training purposes. > > The tasks to