For this task:

  - name: "Generate ssh 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)?



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.


I just use other module:

  - name: "GENERATE KEY"
      name: "user"
      generate_ssh_key: yes
      ssh_key_bits: 2048
      ssh_key_file: "~/.ssh/id_rsa"
    register: keyfile

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.