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 обе роли - пакаджесы и юзеры
|
#### 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: timezone.yml
|
||||||
- import_playbook: packages.yml
|
- import_playbook: packages.yml
|
||||||
- import_playbook: resolvconf.yml
|
- import_playbook: resolvconf.yml
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: node exporter!
|
- name: node exporter!
|
||||||
hosts: all:!lxc
|
hosts: reachable_hosts:!lxc
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
- name: packages
|
- name: packages
|
||||||
hosts: all
|
hosts: reachable_hosts
|
||||||
become: true
|
become: true
|
||||||
become_method: sudo
|
become_method: sudo
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: make resolv.conf work fine
|
- name: make resolv.conf work fine
|
||||||
hosts: all
|
hosts: reachable_hosts
|
||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install the packages versions
|
- name: Install the packages versions
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: act_runner
|
- name: act_runner
|
||||||
hosts:
|
hosts:
|
||||||
- all
|
- reachable_hosts
|
||||||
vars:
|
vars:
|
||||||
act_runner_version: '0.2.13'
|
act_runner_version: '0.2.13'
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Change timezone
|
- name: Change timezone
|
||||||
hosts: all
|
hosts: reachable_hosts
|
||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set timezone to Europe/London
|
- name: Set timezone to Europe/London
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: users
|
- name: users
|
||||||
hosts: all
|
hosts: reachable_hosts
|
||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: make-me
|
- name: make-me
|
||||||
|
|||||||
Reference in New Issue
Block a user