-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
第十五节:stat模块官网:http://docs.ansible.com/ansible/latest/stat_module.html#synopsis用途:检查文件或文件系统的状态注意:对于Windows目标,请改用win_stat模块选项:path:文件/对象的完整路径(必须)案例:name: install_apcu | Check if apcu local file ...