Vonng / pigsty

Free RDS for PostgreSQL —— Pigsty
https://pigsty.io
GNU Affero General Public License v3.0
3.44k stars 264 forks source link

Ubuntu 20.04.6 ./install.yml ERROR #453

Closed feiyangbeyond closed 2 months ago

feiyangbeyond commented 2 months ago

I install according to the get start chapter in the README. After executing bootstrap and configure normally, the following error occurred when executing install.yml.

How to solve this problem?

root@iZ2zei9ngj5pa6q9y0oga9Z:~/pigsty# ./install.yml
ERROR! this task 'ansible.builtin.meta' has extra params, which is only allowed in the following modules: import_tasks, include_tasks, include_role, import_role, command, group_by, meta, include, shell, win_command, script, win_shell, set_fact, raw, add_host, include_vars

The error appears to be in '/root/pigsty/roles/pgsql/tasks/patroni.yml': line 234, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: reload param & hba immediately
  ^ here

My ansible version is:

root@iZ2zei9ngj5pa6q9y0oga9Z:~/pigsty# ansible --version
ansible 2.9.6
  config file = /root/pigsty/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Jul 29 2024, 17:02:10) [GCC 9.4.0]

I tried to update ansible, but the prompt is already the latest. This server is an Alibaba Cloud server, and the mirror source uses Alibaba Cloud by default. Is it an issue with the ansible version?

ansible is already the newest version (2.9.6+dfsg-1)
feiyangbeyond commented 2 months ago

Use ansible 2.10.8