首页 > 解决方案 > 通过 ansible 创建 SSL 密钥的问题

问题描述

请帮助理解为什么这个任务对我不起作用?

---
- name: Generation of SSL key
  openssl_privatekey:
    path: "/opt/mongodbkey"
    size: 741
    force: true

我的错误:

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

The error appears to have been in '/root/mongodb/roles/mongodb/tasks/ssl.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: Generation of SSL key
  ^ here

还有一个快速的问题。这个手动命令是正确的方法吗?

openssl rand -base64 741 > /opt/mongodbkey

标签: sslopensslansible

解决方案


推荐阅读