【发布时间】:2017-04-15 15:16:18
【问题描述】:
我正在尝试在我的 ansible 任务中使用作业模板启动新作业。
示例如下:
---
- name: default_process_backup
hosts: webservers
tasks:
- name: Launch Backup Fetch Files Job
tower_job_launch:
job_template: "backup_fetch_files"
- name: Launch Backup Fetch MariaDB Job
tower_job_launch:
job_template: "backup_fetch_mariadb"
- name: Launch Backup Fetch Postgres Job
tower_job_launch:
job_template: "backup_fetch_postgres"
在 Ansible Tower 中运行具有该任务的作业时,我收到下一个错误:
错误!任务中未检测到任何操作。这通常表示拼写错误 模块名称,或不正确的模块路径。
根据文档 (https://docs.ansible.com/ansible/tower_job_launch_module.html#requirements-on-host-that-executes-module) 我做对了。可能是什么问题以及如何解决?
谢谢。
【问题讨论】:
标签: ansible ansible-tower