internet_check, create file.

This commit is contained in:
me
2026-10-02 10:05:12 -07:00
parent e75d293787
commit bd3a0d33e0
+19
View File
@@ -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 }}"