Ansible—— 21.stat模块

检查文件或文件系统的状态,对于Windows目标,请改用win_stat模块

1. 参数

path:文件/对象的完整路径,required

2. 示例

-tasks
    name: install_apcu | Check if apcu local file is already configured.
    stat: path={{ php_apcu_file_path }}
    connection: local
    register: php_apcu_file_result

————Blueicex 2020/2/2 12:20 [email protected]

你可能感兴趣的:(Ansible)