verify-host test2

This commit is contained in:
thienqb123456
2025-03-15 16:00:56 +07:00
parent afea1ef08a
commit ae3d8934e6
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
- name: verify_host.yml
import_role:
name: utils
tasks_from: verify_host.yml
- name: get_site_current_active_path.yml - name: get_site_current_active_path.yml
import_role: import_role:
name: iis_utils name: iis_utils
+8
View File
@@ -0,0 +1,8 @@
- 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