verify-host test2
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user