Re: [ansible-project] Ansible version > 2.9 Slow

2023-01-09 Thread Nico Kadel-Garcia
On Mon, Jan 9, 2023 at 10:13 AM 'Rowe, Walter P. (Fed)' via Ansible Project wrote: > > There is an "ansible" package which is up to version 7.0.0, and which almost > no one has any reason to use. It is a bundle of more than 100 distinct > ansible collection modules, more safely and consistently

[ansible-project] pip installs old version of ansible-core (2.12) & ansible-galaxy install is broken OOB

2023-01-09 Thread Dan Van Atta
Following up to: https://github.com/ansible/ansible/issues/79697 Is there any plan to update the version of ansible installed by pip? The priority of that I think should be elevated. 2.12 is the current version that is installed via `pip install ansible-core` using python3, which currently

Re: [ansible-project] firewalld module

2023-01-09 Thread Richard Megginson
On Mon, Jan 9, 2023 at 10:08 AM Michael DiDomenico wrote: > yes, i am working on the localhost and have connection: local in the > playbook. the error message doesn't match what i see, but the symptom > is close > I'm pretty sure it is the same issue - the python39 module used by ansible is

Re: [ansible-project] firewalld module

2023-01-09 Thread Michael DiDomenico
yes, i am working on the localhost and have connection: local in the playbook. the error message doesn't match what i see, but the symptom is close in my case ansible for the most part seems to be working okay, its just when ansible calls a system py module (firewalld in this case), it's missing

Re: [ansible-project] firewalld module

2023-01-09 Thread Richard Megginson
Are you by any chance using `localhost` as the managed host? If so, see https://access.redhat.com/solutions/6726561 On Mon, Jan 9, 2023 at 7:29 AM Michael DiDomenico wrote: > this probably a question for redhat, but i'm hoping someone already > asked and answered this. > > according to this

[ansible-project] Inventory from uploaded file

2023-01-09 Thread Chris Condon
I'm trying to create my inventory from WSUS. For me there are advantages in terms of capturing physical servers that aren't in vCenter. I am mostly there. On the WSUS server I have a PowerShell script that exports the list of servers in WSUS to INI and YML files that Ansible can understand. I

Re: [ansible-project] ZFS Snapshots with Recursive flag

2023-01-09 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
What module are you using? Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On Jan 8, 2023, at 5:25 PM, Jay Lepore wrote: I am trying to create a zfs recursive snapshot at the end of a playbook run. This is done with the -r flag ordinarily. I have not

Re: [ansible-project] Ansible version > 2.9 Slow

2023-01-09 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
There is an "ansible" package which is up to version 7.0.0, and which almost no one has any reason to use. It is a bundle of more than 100 distinct ansible collection modules, more safely and consistently handled with the "ansible collections" command. There is no "ansible collections"

[ansible-project] firewalld module

2023-01-09 Thread Michael DiDomenico
this probably a question for redhat, but i'm hoping someone already asked and answered this. according to this blog post https://www.redhat.com/en/blog/updates-using-ansible-rhel-86-and-90 redhat switched from ansible to ansible-core. which means to me that when i install ansible-core i get the

Re: [ansible-project] Ansible version > 2.9 Slow

2023-01-09 Thread Nico Kadel-Garcia
On Sat, Jan 7, 2023 at 10:00 AM Zied Kharrat wrote: > > Hi everyone, > I used to run for my playbooks ansible v2.9 and now I'm testing ansible 2.13. > Playbooks are the same but when executing using 2.13, it tooks randomly for > some tasks long time (like freeze status for a long time). > No

Re: [ansible-project] Do task on one hosts with skipping other ones

2023-01-09 Thread Todd Lewis
You mentioned multiple environments. The suggestion I made before is only sufficient for one environment. In our shop, we use "fully articulated group names" that consist of the problem /"domain", /the "/environment/", plus host classes as required to specify the hosts without relying on

Re: [ansible-project] Do task on one hosts with skipping other ones

2023-01-09 Thread Todd Lewis
This looks like an inventory issue to me. You could have more fine-grained control with hierarchical groups: [a:children] a_db a_app [a_db] dbhost1 [a_app] apphost2 apphost3 Then run your "stop application" task like so:    - name: Stop application …      when: 'inventory_hostname in

Re: [ansible-project] Do task on one hosts with skipping other ones

2023-01-09 Thread Redmansas
I'm running task on group called A [A] dbhost1 apphost2 apphost3 task "stop application" should run only on apphost2 or 3 and need to run only once(script stop whole environment ) so I would like to eliminate from "stop application" dbhost1 and then run stop part only on one of apphosts(no

Re: [ansible-project] Do task on one hosts with skipping other ones

2023-01-09 Thread Dick Visser
I can't make any sense of what you're trying to achieve. Can you rephrase and be more clear? On Mon, 9 Jan 2023 at 12:00, Redmansas wrote: > Hi > Maybe idiotic problem but I don't have clue how to bite it :/ > I have example list of 3 hosts all are needed in inventory. I need to run > one task

[ansible-project] Do task on one hosts with skipping other ones

2023-01-09 Thread Redmansas
Hi Maybe idiotic problem but I don't have clue how to bite it :/ I have example list of 3 hosts all are needed in inventory. I need to run one task to stop application Host 1 Host 2 Host 3 app can be stopped only on host 2 and 3 and it need to run once because it will stop for whole landscape.