Re: [ansible-project] Access Splunk alerts through ansible

2018-08-21 Thread Jonathan Lozada De La Matta
or better if splunk can do curl/api calls to tower then that's a better option. On Wed, Aug 22, 2018 at 1:23 AM Pradeep Drall wrote: > Hi, > Thanks for your email. > > We have created number of alerts in Splunk for our project environment > (dev, uat, production), now we would like to call

Re: [ansible-project] Access Splunk alerts through ansible

2018-08-21 Thread Jonathan Lozada De La Matta
you might be able to use the uri modules and conditionals but, I haven't tried it with splunk. On Wed, Aug 22, 2018 at 1:23 AM Pradeep Drall wrote: > Hi, > Thanks for your email. > > We have created number of alerts in Splunk for our project environment > (dev, uat, production), now we would

Re: [ansible-project] Access Splunk alerts through ansible

2018-08-21 Thread Pradeep Drall
Hi, Thanks for your email. We have created number of alerts in Splunk for our project environment (dev, uat, production), now we would like to call these alerts through ansible / ansible tower. Because we have limited access in splunk and wants to execute / check the alert result. Is there a way

Re: [ansible-project] Re: Jenkins - Ansible integration

2018-08-21 Thread Vamsi Krishna
HI All, Thanks for your suggestion. I am able to resolve this issue. I have installed publish over ssh plugin from which I am able to run ansible playbook directly PS:- My Jenkins and Ansible are on same server Regards Vamsi On Tuesday, August 21, 2018 at 12:04:33 AM UTC+5:30, Malcolm

Re: [ansible-project] location of `group_vars/` for included playbooks changed in 2.4+ ?

2018-08-21 Thread Riccardo Murri
Thank you very much for your reply, Matt -- indeed this was rather clearly documented in the 2.4 porting guide... Effectively, you want to make sure your group_vars is relative to your > inventory file, and not your playbook file. > > Won't be possible in my case (inventory is generated and

Re: [ansible-project] which tags are being used in runtime?

2018-08-21 Thread Brian Coca
ansible_run_tags -- -- 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 email to ansible-project+unsubscr...@googlegroups.com. To post to this

Re: [ansible-project] template module thinks validation succeeded when it should have failed.

2018-08-21 Thread David Reagan
Well, I think there were quite a few issues in my role that manifested in the template validation not working correctly. With fresh eyes, and inspired to think things through better, I was able to get it fixed. I hope. So, thanks! To anyone experiencing something similar, double check your

[ansible-project] azure fileservices in ansible 2.6

2018-08-21 Thread Alexei Vasiliev
Hi, Can someone say if it is possible to create an azure file share (azure storage/files) via new Ansible 2.6 There was mentioned that it can deploy various resources via REST APi, but no examples about shares. Does anyone has such an experience? -- You received this message because you are

[ansible-project] Re: docker connection over remote host tcp no tls

2018-08-21 Thread dmartin
I think your host B has SSL or TLS running on port 2375 OR ansible is trying to use TLS when the thing running on port 2375 isn't. On Monday, November 20, 2017 at 12:09:47 AM UTC-8, Esteban Mirizio wrote: > > Hi everyone! > > I'm Having a hard time trying to a remote docker connection over non

[ansible-project] Re: how to use an pipe like < < in ansible ?

2018-08-21 Thread dmartin
Use the shell module. On Tuesday, August 21, 2018 at 10:45:44 AM UTC-7, Henrik Schuetze wrote: > > i want to use a command like: > > read CURRENT_LOG CURRENT_POS < <( mysql -BNe "SHOW MASTER STATUS"); echo > CURRENT_LOG=$CURRENT_LOG CURRENT_POS=$CURRENT_POS > (credits: >

[ansible-project] how to use an pipe like < < in ansible ?

2018-08-21 Thread Henrik Schuetze
i want to use a command like: read CURRENT_LOG CURRENT_POS < <( mysql -BNe "SHOW MASTER STATUS"); echo CURRENT_LOG=$CURRENT_LOG CURRENT_POS=$CURRENT_POS (credits: https://dba.stackexchange.com/questions/34934/how-to-retrieve-master-log-position-and-master-log-file-in-shell-script) But ansible

Re: [ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
I found a solution: In my inventory files i put the remote IP and the remote ssh key. In my task main.yml i use: - name: copy the ssh key authorized_key: user: root state: present key: "{{ remote_key }}" that solve my problem. Thanx for the help Am Dienstag, 21. August 2018

Re: [ansible-project] ansible on docker installation

2018-08-21 Thread Dick Visser
You haven't stated what you are trying to achieve, so I'll assume you want to run an ansible control machine from a container. If this is the case, then https://hub.docker.com/r/ansible/ansible/ lists your issue: "Images for automated testing of Ansible. They do not include Ansible and are not

[ansible-project] Re: Ansible set_fact sets fact even when another fact is undefined?

2018-08-21 Thread Ford FasteRR
Thanks for the update and clarification on this !!! On Tuesday, August 21, 2018 at 11:05:15 AM UTC-4, Ford FasteRR wrote: > > > 0down votefavorite > > > I'm seeing strange behavior in

Re: [ansible-project] Ansible set_fact sets fact even when another fact is undefined?

2018-08-21 Thread Kai Stian Olstad
On 21.08.2018 17:05, Ford FasteRR wrote: I'm seeing strange behavior in ansible 2.5.5 (on centos 6.10) `facts_help.yml --- - debug: var: fake_fact - debug: var: new_fact - set_fact: new_fact: fake_fact when: fake_fact is defined Indentation error, when: is a property for the

Re: [ansible-project] Ansible set_fact sets fact even when another fact is undefined?

2018-08-21 Thread Karl Auer
The when clause should line up under set_fact. When I indent it properly, that play is skipped as expected. Not sure why the wrongly indented version is not picked up as a syntax error. Here is the playbook I ran: --- - hosts: localhost gather_facts: false become: false tasks: -

Re: [ansible-project] which tags are being used in runtime?

2018-08-21 Thread Jonathan Lozada De La Matta
either there's a tag: name in the playbook or in the tasks. On Tue, Aug 21, 2018 at 11:11 AM Mauricio Castro < mauricioscas...@hotmail.com> wrote: > Hello all, is there a way to know during playbook execution which tags it > was called with in command line with -t ? > > I mean given

[ansible-project] which tags are being used in runtime?

2018-08-21 Thread Mauricio Castro
Hello all, is there a way to know during playbook execution which tags it was called with in command line with -t ? I mean given *ansible-playbook -t x,y,z *how do I know inside the playbook I am only executing tasks with those tags? Thanks -- You received this message because you are

[ansible-project] Ansible set_fact sets fact even when another fact is undefined?

2018-08-21 Thread Ford FasteRR
0down votefavorite I'm seeing strange behavior in ansible 2.5.5 (on centos 6.10) `facts_help.yml --- - debug: var: fake_fact - debug: var: new_fact - set_fact: new_fact:

Re: [ansible-project] location of `group_vars/` for included playbooks changed in 2.4+ ?

2018-08-21 Thread Matt Martz
This is documented at https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.4.html#initial-playbook-relative-group-vars-and-host-vars Effectively, you want to make sure your group_vars is relative to your inventory file, and not your playbook file. On Tue, Aug 21, 2018 at 3:15 AM

Re: [ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Jonathan Lozada De La Matta
Do one host first then the other if you are doing this manually. If you are trying to use ansible to exactly do this steps then use the user module and authorized_key On Tue, Aug 21, 2018 at 9:24 AM Henrik Schuetze wrote: > the syntax for ssh-copy-id is: ssh-copy-id -i ~/.ssh/mykey user@host >

[ansible-project] Galaxy Release 3.0.8

2018-08-21 Thread chousekn
Galaxy bug fix release 3.0.8 will be deployed tomorrow morning, 22 August, at 4:00 AM Eastern. This release includes the following: Bug Fixes - Made the help link more obvious, and added a link to the Galaxy project issue queue. Issue 1006

Re: [ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
the syntax for ssh-copy-id is: ssh-copy-id -i ~/.ssh/mykey user@host And i want: from Host1 to Host2 and from host2 to host1 I don't know how to specify the other host in a such a scenario Am Dienstag, 21. August 2018 15:15:29 UTC+2 schrieb Jonathan Lozada De La Matta: > >

[ansible-project] Re: docker connection over remote host tcp no tls

2018-08-21 Thread Tom van Duist
Hey, Did you ever solve this issue? I'm running in to the same problem.. Op maandag 20 november 2017 08:09:47 UTC schreef Esteban Mirizio: > > Hi everyone! > > I'm Having a hard time trying to a remote docker connection over non tls. > What I'm trying to achieve is to execute an ansible

Re: [ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Jonathan Lozada De La Matta
what do you mean? hard code what exactly? On Tue, Aug 21, 2018 at 9:13 AM Henrik Schuetze wrote: > thanx. but i need to address the other host. And i dont want to hard code > the ip adress in this task > > > > > Am Dienstag, 21. August 2018 14:39:30 UTC+2 schrieb Henrik Schuetze: >> >> Hi, >>

[ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
thanx. but i need to address the other host. And i dont want to hard code the ip adress in this task Am Dienstag, 21. August 2018 14:39:30 UTC+2 schrieb Henrik Schuetze: > > Hi, > > i want to enable ssh between two linux hosts. > i generate the ssh key on both hosts. > and then i need to add

Re: [ansible-project] Solution for add keys mutual

2018-08-21 Thread S C Rigler
Look at ssh-copy-id On Tue, Aug 21, 2018, 7:39 AM Henrik Schuetze wrote: > Hi, > > i want to enable ssh between two linux hosts. > i generate the ssh key on both hosts. > and then i need to add the keys on the other servers respectively > > Does anyone has a ready solution for that? > > >

Re: [ansible-project] Solution for add keys mutual

2018-08-21 Thread Jonathan Lozada De La Matta
https://www.ssh.com/ssh/copy-id On Tue, Aug 21, 2018 at 8:39 AM Henrik Schuetze wrote: > Hi, > > i want to enable ssh between two linux hosts. > i generate the ssh key on both hosts. > and then i need to add the keys on the other servers respectively > > Does anyone has a ready solution for

[ansible-project] Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
Hi, i want to enable ssh between two linux hosts. i generate the ssh key on both hosts. and then i need to add the keys on the other servers respectively Does anyone has a ready solution for that? greetings Henrik -- You received this message because you are subscribed to the Google Groups

[ansible-project] ansible on docker installation

2018-08-21 Thread nbctcp
Hi, I am trying to install ansible on docker on Ubuntu Desktop 18.04LTS PROBLEMS: 1. error when try to docker run 2. whether docker hub ansible/ansible already has ssh client/server inside it If doesn't then how to install ssh inside container What steps I miss tq STEPS Docker # apt-get

[ansible-project] How to assign virtual network to sqlserver on Azure

2018-08-21 Thread Michael Wild
Dear all I successfully created an SQL Server instance with the azure_rm_sqlserver module. However, for it to be useful, I need to connect it with a "vnet rule" to a virtual network. How can I do this? I would expect something similar to azure_rm_virtualmachine, but the azure_rm_sqlserver does

[ansible-project] location of `group_vars/` for included playbooks changed in 2.4+ ?

2018-08-21 Thread Riccardo Murri
Hello, I am updating some playbooks written initially for Ansible 2.2. and 2.3 to remove the features that were deprecated in Ansible 2.4+ The playbook is divided across multiple files, where `main.yml` would `include: roles/play_a.yml` (at playbook level), and then `play_a.yml` would call

Re: [ansible-project] ansible.vault not working anymore?

2018-08-21 Thread vid . jelen1
Tried the python virtualenv and downgrading/upgrading all the possible packages with no success. But I finally resolved the issue after mingling with the system packages... I'm running python 2.7.12 and the issue for me was, that the libs *python3-crypto* & *python3-cffi-backend* were

[ansible-project] ansible exadata module

2018-08-21 Thread bennet samuel
Just to know if ansible has any exadata/dcli/ module. If not, is the best practice to use shell command? -- 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

Re: [ansible-project] Re: ansible-pull configuration

2018-08-21 Thread SUMIT SAHAY
Hi Pshem, Thanks for your reply. I am getting following error, and not able to fix the issue, "msg": "Failed to download remote objects and refs: Ubuntu 16.04.3 LTS\nPermission denied (publickey,password,keyboard-interactive).\r\nfatal: Could not read from remote repository.\n\nPlease make