Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread zil...@gmail.com
Per https://stackoverflow.com/questions/33866695/error-installing-psycopg2-on-macos-10-9-5, installing Postgres should've installed it? That's why I mentioned that I did install it. Chris On Tuesday, June 15, 2021 at 4:42:26 PM UTC-4 weiye...@gmail.com wrote: > Pip install pyscopg2 --user.

[ansible-project] Reference collection root in role

2021-06-15 Thread Mark Faine
How can I do something like this from within a ROLE: handlers: - import_tasks: {{ collection_dir}}/handlers/apache.yaml I see that doing this in a playbook that references the collection does work however there are two things broken with using it like this: 1. It makes all of the roles

Re: [ansible-project] Reference collection root in role

2021-06-15 Thread 'Felix Fontein' via Ansible Project
Hi, how about using `role_dir`? Then you can use that to compose a relative path from the current role's directory to your shared handlers file. > BTW, looks like freenode is down. We've moved to Libera.chat (since three weeks now; see

Re: [ansible-project] Help Reading through nested output

2021-06-15 Thread Vladimir Botka
On Tue, 15 Jun 2021 11:45:59 -0700 (PDT) Nathan Kellyman wrote: > "ansible_net_interfaces": { > "GigabitEthernet1": { > "bandwidth": 100, > "description": null, > "duplex": "Auto", > "ipv4": [ > {

Re: [ansible-project] Ansible for Windows

2021-06-15 Thread Wei-Yen Tan
You can use become:yes in your play. Iirc Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Gabriel Viegas Sent: Wednesday, June 16, 2021 9:10:38 AM To: Ansible Project Subject: [ansible-project] Ansible for Windows

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread zil...@gmail.com
Ok my bad, I misead.. On Tuesday, June 15, 2021 at 5:11:30 PM UTC-4 zil...@gmail.com wrote: > Hmmm, I did tis on both Mac and Linux node. It helped on my Linux node but > not on the Mac, that is, I don't the Failed to import the required Python > library (psycopg2) on the Linux node, but I

Re: [ansible-project] Ansible for Windows

2021-06-15 Thread Wei-Yen Tan
https://docs.ansible.com/ansible/latest/user_guide/become.html You can have it at the top of your play too Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of Gabriel Viegas Sent: Wednesday, June 16, 2021 9:17:00 AM

Re: [ansible-project] Reference collection root in role

2021-06-15 Thread 'Mark Faine' via Ansible Project
Excuse me, I meant to say: Can I include a handlers section in the role tasks? Sent from ProtonMail mobile Original Message On Jun 15, 2021, 16:35, 'Mark Faine' via Ansible Project wrote: > Yes I have been trying role_dir with a relative path but it's not been > working. Can

Re: [ansible-project] Help Reading through nested output

2021-06-15 Thread Nathan Kellyman
Thank you! This is greatly appreciated, and expressed the syntax i needed. On Tuesday, 15 June 2021 at 15:25:07 UTC-4 vbo...@gmail.com wrote: > On Tue, 15 Jun 2021 11:45:59 -0700 (PDT) > Nathan Kellyman wrote: > > > "ansible_net_interfaces": { > > "GigabitEthernet1": { > > "bandwidth":

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread zil...@gmail.com
Hmmm, I did tis on both Mac and Linux node. It helped on my Linux node but not on the Mac, that is, I don't the Failed to import the required Python library (psycopg2) on the Linux node, but I still get it on the Mac. $ python3 -m pip install psycopg2-binary Defaulting to user installation

[ansible-project] Re: Need a help to perform start and stop of tomcat service

2021-06-15 Thread Amit Kulkarni
Let me know if this the correct way, any other ways are most welcome to implement this --- - hosts: all gether_facts: true user: root tasks: - name: stop-tomcat when: ansible_facts['os_family']== "RedHat" command: sh '/opt/deploy/tomcatstop.sh' tasks1: name:

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread Wei-Yen Tan
Pip install pyscopg2 --user. I think Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of zil...@gmail.com Sent: Wednesday, June 16, 2021 8:40:37 AM To: Ansible Project Subject: Re: [ansible-project] Failed to import

[ansible-project] Ansible for Windows

2021-06-15 Thread Gabriel Viegas
I have one question about using Ansible with Windows 1. How to enable Administrator user with Ansible for Windows? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

Re: [ansible-project] Reference collection root in role

2021-06-15 Thread 'Mark Faine' via Ansible Project
Yes I have been trying role_dir with a relative path but it's not been working. Can I include a handlers section in the playbook tasks? That's been the point of confusion for me. I will update my bookmarks for libra chat. Thanks for the update. -Mark Sent from ProtonMail mobile

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread 'Felix Fontein' via Ansible Project
Hi, > Per > https://stackoverflow.com/questions/33866695/error-installing-psycopg2-on-macos-10-9-5, > installing Postgres should've installed it? That's why I mentioned > that I did install it. I cannot find that information on that link. If you are referencing the first answer

Re: [ansible-project] Ansible for Windows

2021-06-15 Thread Gabriel Viegas
Do you have any example module or playbook? Em terça-feira, 15 de junho de 2021 às 18:12:34 UTC-3, weiye...@gmail.com escreveu: > You can use become:yes in your play. Iirc > > Get Outlook for iOS > -- > *From:* ansible...@googlegroups.com on

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread zil...@gmail.com
I was reading that installing Postgres (why I mentioned I installed in both my Mac and Linux node) would've installed the module, but apparently not. Chris On Tuesday, June 15, 2021 at 11:30:30 AM UTC-4 weiye...@gmail.com wrote: > Install that python module psycopg2 on the local machine. You

Re: [ansible-project] Massive network infra management

2021-06-15 Thread Antony Stone
On Tuesday 15 June 2021 at 14:03:18, Parth Patel wrote: > Me referring this as a generalized network devices management with ansible > same as video description. My question was generalized if we have 10k > network device what should be configuration management strategy evolved. Oh, sorry, I

Re: [ansible-project] Massive network infra management

2021-06-15 Thread Parth Patel
Alrightnot a problem. Thanks Antony for prompt response  On Tue, Jun 15, 2021 at 5:48 PM Antony Stone < antony.st...@ansible.open.source.it> wrote: > On Tuesday 15 June 2021 at 14:03:18, Parth Patel wrote: > > > Me referring this as a generalized network devices management with > ansible >

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread zil...@gmail.com
Thanks. I've seen that link before, but the page does not provide an example that uses "login_host"? Is just the hostname, or IP address, or the host running the DB? What about the PostgreSQL cred and connection URL? I don't see them in the module? Thanks, Chris On Tuesday, June 15, 2021 at

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread Wei-Yen Tan
Googling around I found this example: Ansible Loves PostgreSQL - 2ndQuadrant | PostgreSQL looks like name is what you are looking for - postgresql_db: name=module_test state=present

Re: [ansible-project] dict object has no attribute

2021-06-15 Thread kki...@gmail.com
Below is the task - name: create rxgt-ps-b2b-app-vpc-endpoints changeset cloudformation_execute_changeset: stack_name: "rxgt-ps-b2b-app-vpc-endpoints" state: present region: "{{ stack_output_result.net_stack_output_result.account_config.1 }}"

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread zil...@gmail.com
Thanks again. I'll try it later and post here. Chris On Tuesday, June 15, 2021 at 8:53:05 AM UTC-4 weiye...@gmail.com wrote: > Googling around I found this example: > > Ansible Loves PostgreSQL - 2ndQuadrant | PostgreSQL > > >

Re: [ansible-project] Massive network infra management

2021-06-15 Thread Parth Patel
Here is video which I am referring to if you haven't walkthrough - https://www.youtube.com/watch?v=HtMeDbGEylU On Tue, Jun 15, 2021 at 5:22 PM Parth Patel wrote: > I am obviously talking about network devices here > > On Tue, Jun 15, 2021 at 3:39 AM Antony Stone < >

[ansible-project] dict object has no attribute

2021-06-15 Thread kki...@gmail.com
Hi All, I am trying to re-create the AWS Core infrastructure using ansible in another region. I am getting the following error The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'vpc_endpoints'\n\nThe error appears to be in

Re: [ansible-project] dict object has no attribute

2021-06-15 Thread Prasanna Kumar
Can you provide snapshot of what your task looks like? On Tue, Jun 15, 2021, 6:22 PM kki...@gmail.com wrote: > Hi All, > > I am trying to re-create the AWS Core infrastructure using ansible in > another region. I am getting the following error > > The task includes an option with an undefined

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread Wei-Yen Tan
No. But the commands on linux should be able to reach out to a remote host. Can you delegate locally and reach out to remote windows host?

Re: [ansible-project] postgresql_db for Windows?

2021-06-15 Thread Wei-Yen Tan
I Should say option Get Outlook for iOS From: Wei-Yen Tan Sent: Tuesday, June 15, 2021 11:44:52 PM To: ansible-project@googlegroups.com Subject: Re: [ansible-project] postgresql_db for Windows? No. But the commands on linux should be able

Re: [ansible-project] Massive network infra management

2021-06-15 Thread Parth Patel
I am obviously talking about network devices here On Tue, Jun 15, 2021 at 3:39 AM Antony Stone < antony.st...@ansible.open.source.it> wrote: > On Monday 14 June 2021 at 20:45:10, Parth Patel wrote: > > > Thanks Antony. I assumed 500 devices as an example. I saw a vedio from > > redhat about

Re: [ansible-project] Massive network infra management

2021-06-15 Thread Antony Stone
On Tuesday 15 June 2021 at 13:52:38, Parth Patel wrote: > I am obviously talking about network devices here What is a "network device"? Do you mean routers, switches, SANs, firewalls, web servers, mail servers, DSL modems...? I ask simply because the term "network device" is (to me, at least)

Re: [ansible-project] Massive network infra management

2021-06-15 Thread Parth Patel
Me referring this as a generalized network devices management with ansible same as video description. My question was generalized if we have 10k network device what should be configuration management strategy evolved. It wasnt specific to particular vendor or switch or router etc Ref :-

[ansible-project] postgresql_db for Windows?

2021-06-15 Thread zil...@gmail.com
Is there an equivalent Windows module for postgresql_db in Windows that I can use to dump/restore a PostgreSQL DB? Thanks, Chris -- 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

Re: [ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread Wei-Yen Tan
Install that python module psycopg2 on the local machine. You haven’t got the dependency installed Get Outlook for iOS From: ansible-project@googlegroups.com on behalf of zil...@gmail.com Sent: Wednesday, June 16, 2021 3:27:53 AM To:

Re: [ansible-project] dict object has no attribute

2021-06-15 Thread Prasanna Kumar
>From your mail , I can see vpc_endpoints is referenced from stack_output_result. SecurityGroupIds: "{{ *stack_output_result* .net_stack_output_result.account_config.0.account_config.vpcs[stack_output_result.net_stack_output_result.account_config.1].app.

[ansible-project] Failed to import the required Python library (psycopg2)

2021-06-15 Thread zil...@gmail.com
On Ubuntu Linux node $ ansible --version ansible [core 2.11.1] config file = /home/jenkins/.ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location =

Re: [ansible-project] Re: Getting Error while running playbook "msg": "[Errno None] Unable to connect to port 22

2021-06-15 Thread subrat mangaraj
Hello Experts Can someone guide here. Br// Subrat On Mon, 14 Jun 2021, 21:53 subrat mangaraj, wrote: > Hello Reg, > Can you share your inputs. > I am trying to fetch show output from ASR Cisco devices using Mac PC via > jump host to managed host.It should run all cli command from playbook and >

Re: [ansible-project] dict object has no attribute

2021-06-15 Thread kki...@gmail.com
Hi, Thanks for coming back. Yes, I added the debug task before this task and it is printing correctly. Now I managed to fix this issue by supplying the endpoint SG on the config file which has the endpoints which is what it is expecting. Thanks again. On Tuesday, 15 June 2021 at 15:12:41

[ansible-project] How to change the Primary DNS Suffix of this computer

2021-06-15 Thread Gabriel Viegas
How to change the primary DNS suffix of this computer using Ansible for Windows? [image: DNS-Suffix-Dialog.png] -- 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

[ansible-project] Help Reading through nested output

2021-06-15 Thread Nathan Kellyman
Hi, I'm new to ansible, and i'm seeking some help. i'm writing a playbook that should iterate through a group, gather facts, then check the relevant variables against a defined condition, then perform an action depending on whether the condition is met. However, for simple conditions like x ==

[ansible-project] Need a help to perform start and stop of tomcat service

2021-06-15 Thread Amit Kulkarni
Hello Experts, If anyone has has implemented tomcat start and stop on multiple hosts, please .let me know. Regards Amit -- 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