[ansible-project] AWS Ansible

2017-06-28 Thread Suporter
Hi Ansiblers, How can i use same playbook for multiple aws accounts, can i give the access key and secret key as command line paramters in playbook? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and st

Re: [ansible-project] Lookup plugin returns failure

2017-06-28 Thread Guy Matz
YUCH!! Thanks! :-) On Wed, Jun 28, 2017 at 1:04 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 28. juni 2017 18:21, Guy Matz wrote: > >> Peeps, >> Hey! I have an issue with the credstash plugin . . . if it can't >> complete the lookup it simply vomits an AnsibleError, so

Re: [ansible-project] Lookup plugin returns failure

2017-06-28 Thread Kai Stian Olstad
On 28. juni 2017 18:21, Guy Matz wrote: Peeps, Hey! I have an issue with the credstash plugin . . . if it can't complete the lookup it simply vomits an AnsibleError, so it's not possible to do something like: {{ lookup('credstash', 'blah', 'bling') | default('Sane default here') }} Anyone kno

[ansible-project] Lookup plugin returns failure

2017-06-28 Thread Guy Matz
Peeps, Hey! I have an issue with the credstash plugin . . . if it can't complete the lookup it simply vomits an AnsibleError, so it's not possible to do something like: {{ lookup('credstash', 'blah', 'bling') | default('Sane default here') }} Anyone know of a way around this? So that a failed

[ansible-project] How to reformat a yaml dictionary?

2017-06-28 Thread 'J Hawkesworth' via Ansible Project
Hello, So I have a var dictionary which stores component groups and components components_by_group: web: - frontend_app - admin_app database: - db_tools - flyway I'd like to invert this so that I can use the component to lookup the group group_by_component:

[ansible-project] Re: starting karaf with ansble

2017-06-28 Thread 'J Hawkesworth' via Ansible Project
Maybe your application needs some environment variables which aren't set when ansible runs the command. You can set specific environment variables though - see http://docs.ansible.com/ansible/playbooks_environment.html Jon On Wednesday, June 28, 2017 at 3:20:21 PM UTC+1, fanvalt wrote: > > Hel

Re: [ansible-project] Ansible variable with find

2017-06-28 Thread Kai Stian Olstad
On 28. juni 2017 01:55, Anfield wrote: Running the playbook below and wondering whats the correct syntax so I can use a variable within the find statement below This line is in question - when: p.stdout.find"{{('user')}}" != -1 This would be correct without a variable when: p.stdout.fin

Re: [ansible-project] Ansible Tower installation error

2017-06-28 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Wed, Jun 28, 2017 at 1:27 AM, Luvpreet Singh wrote: > Hi, > > I am installing a fresh ansible tower on my localhost on ubuntu 1

[ansible-project] starting karaf with ansble

2017-06-28 Thread fanvalt
Hello, If I run karaf manually with the start command, I have no error. But if I run the start command in a ansible task, I have the following command: 347 [sshd-SshClient[7a4ccb53]-nio2-thread-1] WARN org.apache.sshd.client.session.ClientSessionImpl - Exception caught java.lang.IllegalStateExc

Re: [ansible-project] Problems updating Junos configuration with new modules/versions

2017-06-28 Thread 'Siegfried' via Ansible Project
Indeed, thanks a lot. I had tried a few things with the "src", but never realized at least the mistake of the ">" after junos_config. All good now at least with the native modules! Regards, Sieg On Wednesday, June 28, 2017 at 6:54:56 AM UTC-4, Ganesh Nalawade wrote: > > > As per logs, value of

Re: [ansible-project] Problems updating Junos configuration with new modules/versions

2017-06-28 Thread Ganesh Nalawade
As per logs, value of `src` parameter is null "src": null It seems there is an issue in your playbook. Can you please make below change in the playbook and retry. junos_config: provider: "{{ junos_creds }}" src: "{{ junos_conf }}" update: override comment: Test pushed by ansible Regards

Re: [ansible-project] Permissions issue, cannot become root

2017-06-28 Thread Dick Davies
become_user is the user you sudo to, that should probably not be the same as remote_user (or it's a bit of a waste of time). On 27 June 2017 at 17:44, lask001 wrote: > Been banging my head against this since yesterday, hoping someone is able to > shed some insight on my issues. > > I have a simpl

Re: [ansible-project] Passing to make additional nonvalue parameter (like make -e target) on module level

2017-06-28 Thread Pshem Kowalczyk
Probably the easiest way is to run it via 'shell' command. kind regards Pshem On Wed, 28 Jun 2017 at 20:49 Kuba Nowak wrote: > So I have working Makefile and want to run it via Ansible. > https://docs.ansible.com/ansible/make_module.html#options > > But make module does not seem to support fla

[ansible-project] Passing to make additional nonvalue parameter (like make -e target) on module level

2017-06-28 Thread Kuba Nowak
So I have working Makefile and want to run it via Ansible. https://docs.ansible.com/ansible/make_module.html#options But make module does not seem to support flags, just key-values, any idea how to make this work other way than command: make -e target? -- You received this message because you a

[ansible-project] Permissions issue, cannot become root

2017-06-28 Thread lask001
Been banging my head against this since yesterday, hoping someone is able to shed some insight on my issues. I have a simple role that I'm trying to install java with: --- - name: Install JDK yum: name: /tmp/jdk.rpm state: present This works on my test servers without issue. I am try

[ansible-project] Problems updating Junos configuration with new modules/versions

2017-06-28 Thread 'Siegfried' via Ansible Project
Hi, I had been using the Juniper.junos modules from Ansible Galaxy successfully for a while now, but had been asked to update my python environment to corporate standards through Conda, which included newer versions of most modules. Ever since the update, I have been unable to use either the na

[ansible-project] Running commands as sudo

2017-06-28 Thread lask001
I haven't been using ansible that long, but so far I'm really liking it. I'm running into an issue though that I'm hoping someone will be able to shed some light on. I have an account, foo on the server I want to run my playbook against. I'm trying to install an rpm. I do not have permissions t

[ansible-project] Join the first Ansible Windows Sprint

2017-06-28 Thread Dag Wieers
Hi, So one of the problems we want to tackle with Ansible Sprints is to bring down the number of open issues and open PRs. The idea of doing Sprints that have a strong focus on advancing and closing issues/PRs is something we have been thinking about for some time. Now is the time to see if

Re: [ansible-project] Re: Ansible WinRM Connection 'Connection reset by peer' only when Windows Role ADFS/WAP is Installed and Post Configuration Finished

2017-06-28 Thread Dag Wieers
On Sun, 25 Jun 2017, David Baumann wrote: Yeah i know that is based on http.sys I checked also the http/https binding over netsh and compare them between a working and non working system. Realy no clue why this happening. I put now 3 Days of work into that debugging, now i switch to ensure the