我正在尝试在我的 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)我做得对。可能是什么问题以及如何解决?
谢谢你。