[ansible-project] Getting Runtime error “obj must be a list of dicts or a nested dict” using with_items

2019-08-16 Thread Mohtashim S
I need to search a string "TicketID" in .db files under a directory. If found my playbook should fail. Below is my playbook for the same, however I'm getting runtime error "using with_items" Output: > TASK [Search for Number] >

Re: [ansible-project] Re: Test to see if the Drives exist

2019-08-16 Thread Kai Stian Olstad
On 16.08.2019 23:54, Doug Clark wrote: This is an Ansible issue/request, hence why I am on this forum asking for help. You asked for a suggestion and I gave you one, up to you if you take the advise or not. The reality is that you haven't gotten a reply and asking about which

Re: [ansible-project] Re: Test to see if the Drives exist

2019-08-16 Thread Doug Clark
This is an Ansible issue/request, hence why I am on this forum asking for help. On Friday, August 16, 2019 at 10:11:14 AM UTC-6, Kai Stian Olstad wrote: > > On 16.08.2019 18:05, Doug Clark wrote: > > Any suggestions? > > Since this a Ansible list and not how do I do something in Windows list

Re: [ansible-project] Ansible iterate from file and populate template

2019-08-16 Thread Angel Rengifo Cancino
That's exactly what I'm looking for: how he solved his issue. Unfortunately, he only wanted to solve his problem, but he didn't care about others having the same problem El viernes, 14 de junio de 2019, 12:11:26 (UTC-5), Kai Stian Olstad escribió: > > On 14.06.2019 11:51, Nicola Contu wrote:

[ansible-project] Re: Module yum and package?

2019-08-16 Thread Mike Eggleston
I’m trying a test. I have: tasks: - name: update packages package: name: ‘*’ state: latest And executed as: ansible-playbook -u root -k —limit host yum.yml and get: fatal: [host]: FAIKED! => {“msg”: “module (yum) is missing interpreter line”} Mike > On Aug 16, 2019, at

[ansible-project] best practices re ansible-playbook inventories and group_vars

2019-08-16 Thread Jim Robinson
Folks, I'd like to get some feedback from the experts here about the proper way to lay out inventory group_vars. When ansible was set up in my organization the developer decided to split inventory into two groups, devqa and prod. So when we run a playbook we point to one or the other

[ansible-project] Module yum and package?

2019-08-16 Thread Mike Eggleston
Yum says it will do a wild card on the update (equivalent to “yum update”). Will the module “package” also do a wildcard? Mike -- 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

[ansible-project] Re: "PUTTING" or http PUT interacting with JFrog Artifactory

2019-08-16 Thread GM
Oh - yes. Here is the scenario: I have a JFrog Artifactory server, and I want to use Ansible to upoload/PUT files into the repos that I have in Artifactory. - attempting to use the uri module: I posted what I had below - I am missing something I am sure. Am I going about this the wrong way?

[ansible-project] Re: Test to see if the Drives exist

2019-08-16 Thread Doug Clark
Any suggestions? TIA! On Wednesday, August 14, 2019 at 2:06:53 PM UTC-6, Doug Clark wrote: > > Hello, > I am new to Ansible and looking for some assistance. I want to be able to > run the Ansible script for changes and or additions without rebuilding the > server. In my Ansible script I am

Re: [ansible-project] "PUTTING" or http PUT interacting with JFrog Artifactory

2019-08-16 Thread Zolvaring
To put or post a file to an API I would usually use the uri module. Are you able to explain more what it seems to be missing or post an example? Thanks On Fri, Aug 16, 2019, 5:08 AM GM wrote: > Hey everyone - if I was going to use an Ansible module to push or PUT a > file into say JFrog

Re: [ansible-project] What is the best way to manage machines that aren't defined as hosts?

2019-08-16 Thread Mike Eggleston
Create a local, temporary file of the new hosts and environment variable ANSIBLE_INVENTORY? Mike > On Aug 16, 2019, at 00:34, Zolvaring wrote: > > I'm not sure I understand fully, but none of the hosts you are configuring > need Ansible to be installed for you make changes remotely. Instead

Re: [ansible-project] [question] run logstash shell script in ansible playbooks

2019-08-16 Thread Dick Visser
> > > > The playbook was successful, and in fact, logstash seems to be running on > the target server, but logstash shut down a few seconds after running the > playbook. > You seem to be using ansible to run a shell script, and it ran OK as far as ansible is involved. The error must be somewhere

Re: [ansible-project] SSH to Oracle SBC

2019-08-16 Thread suriravi2002 .
Hi Brain, I tried exploring on usage of raw module but unable to use it . Can you give me a sample code for the same pls . Regards, Suresh.R.V On Tue, 13 Aug, 2019, 11:44 PM Brian Coca, wrote: > Ansible requires a shell and python (or other interpreters) on the > target machine to be usable,

[ansible-project] "PUTTING" or http PUT interacting with JFrog Artifactory

2019-08-16 Thread GM
Hey everyone - if I was going to use an Ansible module to push or PUT a file into say JFrog Artfactory, using an API key, which of the Ansible modules would be best? I have looked at the uri module and the net_put but those do not seem to have the functionality that I would need. I see get_url

[ansible-project] Re: Confused newbie - ERROR! the field 'hosts' is required but was not set

2019-08-16 Thread GM
Thanks much my friend - that fixed things - for now. It's got some other weirdness going on but I think it's an infrastructure issue. Glen On Thursday, August 15, 2019 at 9:46:46 PM UTC-4, Zolvaring wrote: > > In regards to your second question (sorry I missed it), the module looks > okay

Re: [ansible-project] [question] run logstash shell script in ansible playbooks

2019-08-16 Thread seungdols
@Brian Coca, Thank you for your advice on how to ask questions. To test, I configured the following: start_logstash.sh #!/bin/bash LOG_NAME="access-to-kafka" cd ~/logstash/current bin/logstash -f ../conf/${LOG_NAME}.conf --path.data=../data/${LOG_NAME} -- path.logs=../logs/${LOG_NAME}

Re: [ansible-project] Incorrect Sudo Password - For Ansible Remote Host Jobs

2019-08-16 Thread Stefan Hornburg (Racke)
On 8/16/19 11:19 AM, Kalyan Alamuru wrote: > I'm running Job through Job Template which have three tasks i.e. Gather Facts > on One Local Host(Where Tower is running > and Job is Initiated from) and two other remote hosts, For which connectivity > is working as I've tested in stand alone > mode. 

Re: [ansible-project] Incorrect Sudo Password - For Ansible Remote Host Jobs

2019-08-16 Thread Kai Stian Olstad
On 16.08.2019 11:19, Kalyan Alamuru wrote: I'm running Job through Job Template which have three tasks i.e. Gather Facts on One Local Host(Where Tower is running and Job is Initiated from) This is the list for Ansible not Tower, please contact Redhat support for help with Tower. -- Kai

[ansible-project] Incorrect Sudo Password - For Ansible Remote Host Jobs

2019-08-16 Thread Kalyan Alamuru
I'm running Job through Job Template which have three tasks i.e. Gather Facts on One Local Host(Where Tower is running and Job is Initiated from) and two other remote hosts, For which connectivity is working as I've tested in stand alone mode. I've created localadmin credential in tower and