Ansible – How to Fix Misspelled Module Name openssh_keypair

ansible

For this task:

  - name: "Generate ssh keypair"
    openssh_keypair:
      path: /tmp/ddd_id_rsa

Get this error:

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

How to fix this trouble(the other tasks at same playbook works fine)?

Regards

Best Answer

You're trying to use a module from a pre-release version of Ansible. You will either need to wait for the feature to be released (in 2.8, according to the docs) or run the git branch of ansible in which it is being developed.