- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有没有with_fileglob
在ansible中远程工作吗?
主要是我确实想使用与 with_fileglob
类似的东西但这会将远程/目标机器上的文件全局化,而不是在运行 ansible 的机器上。
最佳答案
使用 find
module过滤文件,然后处理结果列表:
- name: Get files on remote machine
find:
paths: /path/on/remote
register: my_find
- debug:
var: item.path
with_items: "{{ my_find.files }}"
关于ansible - 是否有 with_fileglob 可以在 ansible 中远程工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33543551/
我正在整理一个旨在构建网络服务器的 Ansible Playbook。但是我在尝试使用 with_fileglob 时卡住了因为 Ansible 不断报告它正在跳过 nginx vhost 文件的副本
我正在尝试构建一个系统,其中包含按字母顺序排列的目录中的任务。假设我的目录中有以下文件: 01-task.yml 02-task.yml .. 10-task.yml 我希望 ansible 按顺序包
我正在使用 Ansible,并且目录结构如下例所示: configs something files 1.conf 2.conf /
我在 Ansible 脚本中使用以下任务将所有文件从本地数据文件夹复制到服务器: - name: copy basic files to folder copy: src: "{{ ite
我正在尝试转these将行放入我可以放入 ansible playbook 的内容中: # Install Prezto files shopt -s extglob shopt -s nullglo
有没有with_fileglob在ansible中远程工作吗? 主要是我确实想使用与 with_fileglob 类似的东西但这会将远程/目标机器上的文件全局化,而不是在运行 ansible 的机器上
我是一名优秀的程序员,十分优秀!