Re: [ansible-project] Ansible custom plugin path change

2020-01-27 Thread Stefan Hornburg (Racke)
On 1/28/20 8:26 AM, Ansible Krazy wrote: > Right now, by default custom plugins are stored in home directory : > ~/.ansible/plugins/callback Our custom plugins are > placed in comman directory : say : /var/ansible/plugin > > We dont have comman user to login to perform production activities, so

[ansible-project] Ansible custom plugin path change

2020-01-27 Thread Ansible Krazy
Right now, by default custom plugins are stored in home directory : ~/.ansible/plugins/callback Our custom plugins are placed in comman directory : say : /var/ansible/plugin We dont have comman user to login to perform production activities, so if we make some changes in plugin placed in command

[ansible-project] Quick question- how to run ansible playbook on Saturday night at 12 PM and save the output in amazon s3 bucket

2020-01-27 Thread Work-Hard
Quick question- how to run ansible-playbook on Saturday night at 12 PM and save the output in the amazon s3 bucket- "abc"? -- 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,

Re: [ansible-project] Running a select statement as script using oracle_sql module

2020-01-27 Thread Anand Solomon
Looks like we can only use sql parameter in oracle_sql module. On Saturday, January 25, 2020 at 5:30:05 PM UTC-5, Dick Visser wrote: > > This isn't a module that ships with ansible, please contact the > module's authors for support. > > On Sat, 25 Jan 2020 at 16:03, Anand Solomon > wrote: > >

Re: [ansible-project] Simple Loop

2020-01-27 Thread Anand Solomon
This works now. Thanks. On Monday, January 27, 2020 at 11:03:57 AM UTC-5, Dick Visser wrote: > > If you supply the list as: > > vars: > schemaname: > - user1 > - user2 > - user3 > > then it's as easy as: > > loop: "{{ schemaname }}" > > > If you get that comma delimited

[ansible-project] Re: Ansible win_ping fails

2020-01-27 Thread Jordan Borean
Ansible just runs the ssh binary and reports back what it says. In this case it tried to authenticate using an SSH key with no fallback to password authentication and that failed. You can even run the same command that is displayed to see what happens when you run it manually. You also say you

[ansible-project] Re: kerberos: the python kerberos library is not installed

2020-01-27 Thread Jordan Borean
That's telling you it can't compile the pykerberos library, it's trying to find headers that are not present. In this case you need the python3-devel package installed with yum/dnf. These headers are different from the Python 2 headers which is why you can install pykerberos in Python 2 and not

[ansible-project] Ansible win_ping fails

2020-01-27 Thread Scott V
I have OpenSSH configured on a Windows 2012 server and I can establish an SSH connection to it from Centos 7, but when I run the command: sudo ansible windows -m win_ping I get: ansible 2.9.2 config file = /etc/ansible/ansible.cfg configured module search path =

[ansible-project] Re: kerberos: the python kerberos library is not installed

2020-01-27 Thread Aravind Sivaraman
Ansible is default to python3 [ansible@NBP-HO7-Ansible01 windows]$ echo $ANSIBLE_PYTHON /usr/bin/python3 And when I do pip list for pip3, kerberos doesnt get listed, its available only for pip 2. I did try to install using pip3 but just getting error as following [ansible@NBP-HO7-Ansible01

[ansible-project] Re: kerberos: the python kerberos library is not installed

2020-01-27 Thread Jordan Borean
Sinc pywinrm 0.4.0, requests-kerberos is not actually used so in your case we don't really have to worry about that particular library in your pywinrm version. The pykerberos library is still required but it looks like you do have it there. Also you are saying you have both Python 2.7 and 3.6

[ansible-project] kerberos: the python kerberos library is not installed

2020-01-27 Thread Aravind Sivaraman
I am trying to authenticated to windows servers using "Kerberos” , but I am getting an error as “kerberos: the python kerberos library is not installed”. The basic authentication to the windows servers works well. Kerberos is installed and i cant authentication to the domain using kinit.

Re: [ansible-project] Simple Loop

2020-01-27 Thread Dick Visser
If you supply the list as: vars: schemaname: - user1 - user2 - user3 then it's as easy as: loop: "{{ schemaname }}" If you get that comma delimited string from somewhere else (which I asked but got no response to), then you'd have to manually split and trim: loop: "{{

[ansible-project] exporting grafana dashboards (containerised) using ansible

2020-01-27 Thread Vishal Bobade
Hello, I am looking forward to export grafana json dashboards using ansible. Could you please help me on how can I use dockerized grafana to do so . Regards, vbob -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] Simple Loop

2020-01-27 Thread Anand Solomon
Yes, All I want to create is the user from the list (vars). This will be hard coded value from the vars and the password will be the same for all the users. On Monday, January 27, 2020 at 10:34:25 AM UTC-5, Dick Visser wrote: > > On Mon, 27 Jan 2020 at 15:57, Anand Solomon > wrote: > > >

Re: [ansible-project] Simple Loop

2020-01-27 Thread Dick Visser
On Mon, 27 Jan 2020 at 15:57, Anand Solomon wrote: > > Hi, > I want to create users in the database using Ansible. I need ansible to run > the task (creating user) for all the users mentioned in the vars: schemaname. > How do I do that in loop ? That list of users only has the usernames. If

Re: [ansible-project] Simple Loop

2020-01-27 Thread Dick Visser
You'd have to manually split that and trim the results so you can use it in a loop. Where does that "user1, user2, user3" string come from? On Mon, 27 Jan 2020 at 15:57, Anand Solomon wrote: > > Hi, > I want to create users in the database using Ansible. I need ansible to run > the task

[ansible-project] Simple Loop

2020-01-27 Thread Anand Solomon
Hi, I want to create users in the database using Ansible. I need ansible to run the task (creating user) for all the users mentioned in the vars: schemaname. How do I do that in loop ? var: schemaname: user1, user2, user3 tasks: - name: This playbook will create the user.

[ansible-project] GCP: How to pull inventory dynamically with multiple labels using Inventory Plugins?

2020-01-27 Thread Sreenivas Chokkarapu
Hi Folks, I'm using ansible 2.8.4 with Google cloud platform. I'm using *Inventory Plugins* to get the dynamic inventory as ansible recommends. I've 2 Apache nifi clusters, so I'm pulling inventory using *gcp_compute*. Each cluster I have a label index: 1 and index: 2 so that I can pull vms

[ansible-project] Ansible for Windows Server DHCP feature (dhcpmgmt.msc)

2020-01-27 Thread Yehuda Pinhas
Hi, I want to create ansible automation for create IPv4 pools on Windows Server 2019 operating system. This is where I want to add the pool: [image: Capture.PNG] >From what I understand I have two options I could do that: 1. Is to the find dhcpmgmt built-in Ansible module which is

Re: [ansible-project] Problem with Conditional variable

2020-01-27 Thread Yehuda Pinhas
Hi guys! Solved. Solution: qos_policy: "{{ 'qos-nested-50m' if bandwidth_mb == 50 else 'qos-nested-new-' ~ bandwidth_mb ~ 'm' }}" Thanks for all replys. Peace out. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this