internet_check, create file.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
# 20261002 - Hyperling
|
||||
# Check whether we're connected to the internet and skip certain playbooks if not.
|
||||
|
||||
- name: General | Tests | Internet | Facts
|
||||
ansible.builtin.set_fact:
|
||||
internet: true
|
||||
|
||||
- name: General | Tests | Internet | Check
|
||||
ansible.builtin.wait_for:
|
||||
host: archlinux.org.com
|
||||
port: 443
|
||||
state: started
|
||||
timeout: 15
|
||||
register: internet_check
|
||||
|
||||
- name: General | Tests | Internet | Facts
|
||||
ansible.builtin.set_fact:
|
||||
internet: "{{ internet_check is success }}"
|
||||
Reference in New Issue
Block a user