chịu, chưa xử lí đc vấn đề skipping: no hosts matched , mà ko báo lỗi

This commit is contained in:
thienqb123456
2025-03-15 16:07:52 +07:00
parent ae3d8934e6
commit ff32e21b51
3 changed files with 1 additions and 14 deletions
-5
View File
@@ -1,8 +1,3 @@
- name: verify_host.yml
import_role:
name: utils
tasks_from: verify_host.yml
- name: get_site_current_active_path.yml
import_role:
name: iis_utils
-8
View File
@@ -1,8 +0,0 @@
- name: Verify hosts matched
hosts: all
gather_facts: no
tasks:
- name: Fail if no hosts are available
ansible.builtin.fail:
msg: "Không có hosts nào khớp!"
when: ansible_play_hosts | length == 0