0

例如,想使用gluster_volume 模块

使用 ansible 2.1 我得到

'gluster_volume' 不是 Play 的有效属性。

我如何将它“包含”在我的 ansible 中?

---
  - name: create gluster volume
    hosts: all
    gluster_volume: state=present name=test1 bricks=/bricks/brick1/g1 rebalance=yes
    run_once: true
4

1 回答 1

1

你可以试试这个:

---
  - name: create gluster volume
    hosts: all
    tasks:
      - gluster_volume: state=present name=test1 bricks=/bricks/brick1/g1 rebalance=yes
        run_once: true
于 2016-06-30T18:36:23.637 回答