internet, add pausing.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# 20261002 - Hyperling
|
# 20261002 - Hyperling
|
||||||
# Check whether we're connected to the internet and skip certain playbooks if not.
|
# Check whether we're connected to the internet and skip certain playbooks if not.
|
||||||
|
|
||||||
- name: General | Tests | Internet | Facts
|
- name: General | Tests | Internet | Facts 01
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
internet: true
|
internet: true
|
||||||
|
|
||||||
@@ -11,9 +11,15 @@
|
|||||||
host: archlinux.org
|
host: archlinux.org
|
||||||
port: 443
|
port: 443
|
||||||
state: started
|
state: started
|
||||||
timeout: 15
|
timeout: 5
|
||||||
register: internet_check
|
register: internet_check
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: General | Tests | Internet | Facts
|
- name: General | Tests | Internet | Facts 02
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
internet: "{{ internet_check is success }}"
|
internet: "{{ internet_check is success }}"
|
||||||
|
|
||||||
|
- name: General | Tests | Internet | Pause
|
||||||
|
ansible.builtin.pause:
|
||||||
|
echo: "Not connected to the Internet, either stop me or press [Enter] to continue..."
|
||||||
|
when: not internet
|
||||||
|
|||||||
Reference in New Issue
Block a user