ansible.buildin.shellを使用するときのansibleの問題

ansible.buildin.shellを使用するときのansibleの問題
$ ansible all -m ansible.builtin.shell  -a 'echo $TERM'
ERROR! this task 'ansible.builtin.shell' has extra params, which is only
allowed in the following modules: import_role, win_command,
include_vars, include_tasks, raw, win_shell, command, add_host, 
meta, include_role, shell, import_tasks, group_by, set_fact, script, include

誰もが問題が何であるかを理解するのに役立ちますか?

タグ-vvv付けされました。

$ ansible -vvv centos -m ansible.builtin.shell  -a 'echo $TERM'
ansible 2.9.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/chandru/.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.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
ERROR! this task 'ansible.builtin.shell' has extra params, which is only allowed in the following modules: group_by, include_tasks, set_fact, raw, add_host, win_shell, win_command, include_vars, meta, import_role, command, script, include, shell, import_tasks, include_role

ベストアンサー1

これは、FQCNへの移行の一部として導入されたAnsibleのバグが原因で発生します。https://github.com/ansible/ansible/pull/71824

回避策として、単にansible.builtin.shell古い学校のshell名前に置き換えることができます。

おすすめ記事