ssl - 通过 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
解决方案
推荐阅读
- html - Bootstrap modal 将页面滚动到顶部
- java - 在对话窗口中选择可见元素
- c# - 正则表达式 - 从字符串中仅获取十进制数
- mysql - 如何将 Node.js API 连接到 Oracle DB
- rxjs - 如何为单个事件循环滴答重新计算一次可观察的?
- python-3.x - 我正在尝试将 ffmpeg 与 CodeRunner 一起使用,但它不起作用
- mongodb - MongoRepository Save 方法不插入数据库
- node.js - 通过 API 创建 GCP 项目不会启用服务使用 API
- xml - 使用 sed 从类似 XML 的文件中删除特定文本
- php - 如何使用 php 获取 MySQL 表的自动增量值?