ios - Ansible 多行提示字符串 ios_command 模块

标签 ios ansible

我正在尝试使用 ansible ios_command 重新加载设备。

手动重新加载输出是:

路由器#reload

正在事件单元上发出重新加载命令,这将重新加载整个堆栈

继续重新加载? [确认]

我的重新加载剧本部分如下所示:

commands:
  -command: reload
    prompt: 'Proceed with reload? [confirm]'
    answer: "\r"

但我无法让它工作。如何指定几行进行提示解析?

最佳答案

根据 akhil01 的回答,这对我有用

name: Confirmation Required
    pause:
      prompt: |
        proceed with reload ?

        {{ vars_also_works }}

        Press ENTER to continue or CTRL+C and A to abort...

关于ios - Ansible 多行提示字符串 ios_command 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53842051/

相关文章:

ios - 当 itunesConnect 没有在左侧面板中显示准备提交时如何提交应用程序以供审核

ios - swift 3 : Why symbol _ is added before sender in parameters of action?

vim - 如何在vim中转到未提及扩展名的文件(gf)?

Ansible 循环直到条件匹配。

Ansible:禁止混合角色和任务?

ios - 模拟器 10.2.1 命令 + R 在 react native 中不起作用

ios - 用 NSURLSession 替换同步 NSURLConnection 的最佳实践

ios - NSBundle.allFrameworks 不返回一些框架

ansible - 从特定组的 ansible list 中获取变量

ansible-galaxy错误: API server not found