Closed legrandlegrand closed 1 month ago
Found the answer ... in Ansible web site:
You might already have this collection installed if you are using the **ansible** package. It is not included in **ansible-core**. To check whether it is installed, run ansible-galaxy collection list. To install it, use: ansible-galaxy collection install community.general. To use it in a playbook, specify: community.general.rpm_ostree_pkg.
Will try to install ansible package ...
trying to install ansible on rocky linux 9.3 fails $ dnf install ansible ... Error: Problem: conflicting requests
This has nothing to do with postgresql_cluster. Will try to resolve it or use an other host to test. Sorry for the noise
Hello team, I'm very interested with this tool that's so features reach, and I want to test it deeply !
Here is the error I have:
$ ansible-playbook deploy_pgcluster.yml
ERROR! couldn't resolve module/action 'community.general.modprobe'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/home/xxxxx/postgresql_cluster-1.9.0/roles/ansible-role-firewall/tasks/main.yml': line 46, column 7, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
my ansible (core) version is: $ ansible-playbook --version
ansible-playbook [core 2.14.9] config file = /home/xxxxxxxx/postgresql_cluster-1.9.0/ansible.cfg configured module search path = ['/home/xxxxxxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /home/xxxxxxxx/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible-playbook python version = 3.9.18 (main, Jan 4 2024, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3) jinja version = 3.1.2 libyaml = True
I saw that Minimum supported Ansible version: 2.11.0
Is my ansible (core) version correct ? Do I need to install additional packages ?
Thanks in advance Regards PAscal