Re: [ansible-project] lineinfile using insertafter

2020-07-17 Thread Stefan Hornburg (Racke)
On 7/17/20 10:21 PM, 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > Hey all, > > Trying to insert a line to multiple instances in the same file.   > > I tried insertafter but that only put in one spot.  Here's the code: > >     - name: add proxy to zabbix.repo if needed >      

Re: [ansible-project] ImportError: No module named requests

2020-07-17 Thread Abhijeet Kasurde
Ansible is using /usr/bin/python2 and requests is installed in /opt/rh/python27/root/usr/lib/python2.7/site-packages Set ansible_python_interpreter as in the playbook or adjust your python path - vars: ansible_python_interpreter: '/opt/rh/python27/root/usr/lib/python2.7/bin/python' tasks: Read

Re: [ansible-project] ansible read_csv help

2020-07-17 Thread Thomas Renzy
So I reviewed this and I think you need to make the following changes: - name: MANAGE Tenant aci_tenant: hostname: "{{ aci_hostname }}" username: "{{ aci_username }}" password: "{{ aci_password }}" tenant: "{{ *item.tenant* }}" description: "{{

Re: [ansible-project] ImportError: No module named requests

2020-07-17 Thread Nagesh sheregar
Hi abhi, Name: requests Version: 2.24.0 Summary: Python HTTP for Humans. Home-page: https://requests.readthedocs.io Author: Kenneth Reitz Author-email: m...@kennethreitz.org License: Apache 2.0 Location: /opt/rh/python27/root/usr/lib/python2.7/site-packages Requires: certifi, idna, chardet,

Re: [ansible-project] ImportError: No module named requests

2020-07-17 Thread Abhijeet Kasurde
can you check pip show requests On Sat, Jul 18, 2020 at 7:08 AM Nagesh sheregar wrote: > Hi abhi, > > itsy already there: > > [root@s605141sl7vl402 ansible]# pip list | grep requests > DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. > Please upgrade your Python as

Re: [ansible-project] ImportError: No module named requests

2020-07-17 Thread Nagesh sheregar
Hi abhi, itsy already there: [root@s605141sl7vl402 ansible]# pip list | grep requests DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More

Re: [ansible-project] ImportError: No module named requests

2020-07-17 Thread Abhijeet Kasurde
On s605141sl7vl402.savvis.lab, do pip install requests On Sat, Jul 18, 2020 at 4:46 AM Nagesh sheregar wrote: > Hi team, > > can someone please help me on this > > TASK [vcenter : Gather all registered virtual machines] >

[ansible-project] Re: ansible read_csv help

2020-07-17 Thread stack flow
could someone help please. On Thursday, July 16, 2020 at 8:58:59 PM UTC-4, stack flow wrote: > > Hello, below is my csv and yml file: > > CVS: > > tenant,tenant_description > tn01,tn01 > tn02,tn02 > tn03,tn03 > > > YML: > > --- > # Tenants in ACI > - name: Create AEPs > hosts: apic1 > connection:

[ansible-project] ImportError: No module named requests

2020-07-17 Thread Nagesh sheregar
Hi team, can someone please help me on this TASK [vcenter : Gather all registered virtual machines] *** task path:

[ansible-project] oracle java 8 in ubuntu

2020-07-17 Thread Rajeeb sahoo
Hi I want to install oracle java 8 .deb version in ubuntu both(JDK and JRE) I don't have a syntax error. Ansible ran complete fine. but in remote sever java did not install. -- *Thanks & Regards,* *Rajeeb Sahoo* -- You received this message because you are subscribed to the Google Groups

[ansible-project] lineinfile using insertafter

2020-07-17 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Hey all, Trying to insert a line to multiple instances in the same file. I tried insertafter but that only put in one spot. Here's the code: - name: add proxy to zabbix.repo if needed lineinfile: path: /etc/yum.repos.d/zabbix.repo state: present insertafter:

Re: [ansible-project] Working around lookup plugin limitation with environment variables

2020-07-17 Thread Stefan Hornburg (Racke)
On 7/17/20 8:02 PM, Nico H wrote: > Thanks Racke,  > sure , so in this case */environment /*is assigned to the /*tasks */level and > should therefore not fail cause it is not > loaded before runtime.  > In the case I have multiple roles, I have to repeat the task as many times as > I need a role

[ansible-project] Playbook against multiple hosts in diffrent AD domains

2020-07-17 Thread Gerry Maddock
Hey all, I have been using a playbook to update host groups. Once I'm done running it against one group of hosts, I change the hosts: entry and run it against the next set of hosts. All of my vars are saved in /etc/ansible/group-vars Like I said I have (3) different Windows AD domains (none are

Re: [ansible-project] Working around lookup plugin limitation with environment variables

2020-07-17 Thread Nico H
Thanks Racke, sure , so in this case *environment *is assigned to the *tasks *level and should therefore not fail cause it is not loaded before runtime. In the case I have multiple roles, I have to repeat the task as many times as I need a role , lots of duplicate *environment *then . Can we

Re: [ansible-project] Working around lookup plugin limitation with environment variables

2020-07-17 Thread Nico H
Thanks Racke, sure , so in this case *environment *is assigned to the *tasks *level and should therefore not fail cause it is not loaded before runtime. In the case I have multiple roles, I have to repeat the task as many times as I need a role , lots of duplicate *environment *then . Can we

Re: [ansible-project] environment proxy variable not working

2020-07-17 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Interesting. That must have been my own typo. I've verified that my variable name says proxy_env on both the declaration and where it's trying to be applied to. Here's the verbose output -- it keeps trying to use the http_proxy instead of the https_proxy. * SSH: EXEC sshpass -d10 ssh -vvv -C

Re: [ansible-project] environment proxy variable not working

2020-07-17 Thread Stefan Hornburg (Racke)
On 7/17/20 6:53 PM, 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > Hey all, > > I'm having an issue trying to get ansible to use my environment variable to > pull through a proxy server. > > Running: ansible 2.9.10 > > Here's my variable declarations: > > --- > - name: puppet5 >  

[ansible-project] environment proxy variable not working

2020-07-17 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Hey all, I'm having an issue trying to get ansible to use my environment variable to pull through a proxy server. Running: ansible 2.9.10 Here's my variable declarations: --- - name: puppet5 hosts: ALL_LINUX become: yes vars_files: - passwd.yml - vars.yml vars: os_version:

Re: [ansible-project] Re: Trying to install Feature update to Windows 10, version 1909 with Ansible

2020-07-17 Thread Alan Woods
I have. I have used it for installing IIS and a few other features. -- 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: Trying to install Feature update to Windows 10, version 1909 with Ansible

2020-07-17 Thread Alan Woods
I have a little bit for installing IIS and a few other features? On Friday, July 17, 2020 at 2:26:28 AM UTC-7, CORLEONE## wrote: > > Have you used the win feature module before? > > Regards, > Manash > > On Thu, 9 Jul 2020, 01:54 Alan Woods, > > wrote: > >> Would you mind sharing you playbook

Re: [ansible-project] Working around lookup plugin limitation with environment variables

2020-07-17 Thread Stefan Hornburg (Racke)
On 7/17/20 12:05 AM, Nico H wrote: > Hey, have you ever find a solution here ?  > I face the same problem  trying to pass my sts credentials in environment for > a role, like this :  > > > pre_tasks : > >     - name: Assume role >       sts_assume_role: >         role_arn:

[ansible-project] Re: pywinrm, winrm, ansible - no go

2020-07-17 Thread ej
Hi ewholz, We’re you able to get it working? It sounded like maybe you’d installed Ansible with pip and had the same issue with the umask. ej -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] acme_certificate account_key* support for sectigo CA

2020-07-17 Thread 'Felix Fontein' via Ansible Project
Hi, > sectigo is my SSL provider and they support the ACME protocol and I'd > like to leverage the acme_certificate module; however, Sectigo seems > to use and HMAC key for authentication rather than RSA keys. is it > possible to use an HMAC key with the set of acme_* modules for CAs > such as

Re: [ansible-project] Re: Trying to install Feature update to Windows 10, version 1909 with Ansible

2020-07-17 Thread CORLEONE##
Have you used the win feature module before? Regards, Manash On Thu, 9 Jul 2020, 01:54 Alan Woods, wrote: > Would you mind sharing you playbook for the upgrade install? > > On Wednesday, July 8, 2020 at 8:07:20 AM UTC-7, Alan Woods wrote: >> >> Hi Corleone, the account that I am using is in

[ansible-project] Collection: adding ps1 script breaks anisble_connection=local?

2020-07-17 Thread Romain Pelisse
Hi, I'm running into something weird, that is maybe a bug, but I would like to check this before reporting it. I'm working on the Ansible jcliff collection and we recently added a ps1 script to our modules to support windows.