【问题标题】:how to use cpio related commands in ansible playbook?如何在 ansible playbook 中使用 cpio 相关命令?
【发布时间】:2018-02-06 13:32:48
【问题描述】:

我需要在剧本中使用与 cpio 相关的命令,例如 cpio -imdv 。 CPIO 命令必须使用哪个 ansible 模块。

【问题讨论】:

    标签: ansible ansible-2.x


    【解决方案1】:

    你能用一个简单的命令吗?

    - name: Execute the command in remote shell
      shell: cpio -imdv
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-18
      • 1970-01-01
      • 1970-01-01
      • 2019-11-21
      • 1970-01-01
      • 2013-12-09
      • 2020-03-29
      相关资源
      最近更新 更多