[ansible-project] Re: Ansible dict date to csv file

2022-09-10 Thread Sagan
IF you have your closters has dicts in your variable you can use a loop with dict2items and loop around it, as to writing it in your file you can use this module https://docs.ansible.com/ansible/latest/collections/ansible/builtin/lineinfile_module.html On Saturday, September 10, 2022 at 5:47:07

[ansible-project] Locate objects in Active Directory

2022-09-05 Thread Sagan
Greetings, I'm having a bit of a tool gap because I can't quite figure out where to go here... here's what I want to do. I have a list with the OU names, very straightforward. And what I need to do is, use that list to find all the users that are in those UOs. Now here's the issue, the AD

[ansible-project] Re: PostgreSQL Create roles from list

2022-09-05 Thread Sagan
c_roles|dict2items }}" when: item.value.member_of Has you can see in the first task i test if the user can login and i display it in the attributes. So that way it will know if it's a user or a group. Then i have another task that actually puts the members in the respective

[ansible-project] PostgreSQL Create roles from list

2022-08-29 Thread Sagan
Objective: - Create a file under a common format (yml, json) - Create a PostgreSQL role for each user un file Description: I'm trying to create alot of users and inserting them into their respective groups, the structure isn't very complicated, but my current issue, is trying to find documentati

[ansible-project] Change pg_hba.conf & postgresql.conf

2022-08-26 Thread Sagan
Hello, I'm trying to automatize the editing of these files. I have made a playbook to install PostgreSQL in a controlled node. However, I need to change these 2 files to accept remote connections so I can access the PostgreSQL databases with my PGadmin4. However, I can't seem to find how to ch