修复 Ansible stat 模块属性访问错误

- 修正 xxxigcc_update_pool_url.yaml 中的条件判断
- 将 log_dir_stat.isdir 修正为 log_dir_stat.stat.isdir
- 新增 stat 模块属性访问最佳实践文档
- 更新故障排除指南中的常见错误处理部分
This commit is contained in:
2025-12-16 13:49:00 +08:00
parent fab44ceab6
commit a6399d1bce
4 changed files with 42 additions and 5 deletions

View File

@@ -106,7 +106,7 @@
- name: 显示日志清理结果
ansible.builtin.debug:
msg: "日志目录 {{ log_dir }} 已清理"
when: log_dir_stat.stat.exists and log_dir_stat.isdir
when: log_dir_stat.stat.exists and log_dir_stat.stat.isdir
- name: 重启 xxxigcc-daemon 服务
ansible.builtin.systemd: