[ansible-devel] Inventory group not getting created when using add_host and one of the iteration of task fails.

2023-02-23 Thread Bunty G
Inventory group not getting created when using add_host and one of the iteration of task fails. Below is the playbook -- - hosts: localhost connection: local # become: yes # become_method: sudo tasks: - set_fact: hosts: - name: "web1" change: "chg

[ansible-devel] SQL to drop user from oracle database

2023-02-23 Thread Asad
Hi All , I want to write a task which does the following logs in to oracle database using sqlplus SQL> select 'drop user '||username||' cascade ;' from dba_users where username like 'abc_%'; Execute the Drop queries Generated from the above query. how to save output from dynamic sql and

Re: [ansible-devel] How to have ansible collection installed in the "edit mode"?

2023-02-23 Thread Roman Dodin
I think I solved these two questions, thanks to Brian's comment on symlinks and general guidance by Matt. Appreciate. TLDR: I wanted to have an ansible collection dir to be located anywhere, not following a particular dir structure, and satisfy the following requirements: 1. ansible-playbook shoul