v3 #1
@@ -1,3 +1,8 @@
|
||||
- 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
|
||||
|
||||
@@ -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