add tz cchange
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
#### TODO обе роли - пакаджесы и юзеры
|
||||
---
|
||||
---
|
||||
- name: Check host connectivity
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Ping hosts
|
||||
ansible.builtin.ping:
|
||||
register: ping_result
|
||||
ignore_errors: true # Continue even if some hosts fail to ping
|
||||
|
||||
- name: Add reachable hosts to a dynamic group
|
||||
ansible.builtin.add_host:
|
||||
name: "{{ item.ansible_host }}"
|
||||
groups: reachable_hosts
|
||||
when: ping_result.results is defined and item.ansible_facts.ping == 'pong'
|
||||
loop: "{{ ping_result.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.ansible_host }}"
|
||||
|
||||
- import_playbook: timezone.yml
|
||||
- import_playbook: packages.yml
|
||||
- import_playbook: resolvconf.yml
|
||||
|
||||
Reference in New Issue
Block a user