【问题标题】:Launch a job using Ansible Tower [duplicate]使用 Ansible Tower 启动作业 [重复]
【发布时间】: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


    【解决方案1】:

    Ansible 2.3 及更高版本支持tower_job_launch

    我猜,你应该升级 Ansible 版本...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多