Files
ansible-repo/playbooks/_common-setup.yml
hogweed1 1025809015
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
now we goin to set-up root-ca
2026-05-15 19:35:08 +10:00

27 lines
938 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### TODO обе роли - пакаджесы и юзеры
---
#### 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
- import_playbook: users.yml
- import_playbook: exporters.yml
- import_playbook: pmc314-ca.yml