1
0

first upload

This commit is contained in:
2025-09-15 16:50:41 +02:00
parent 604b587ebd
commit 98b06de737
5 changed files with 65 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
---
- name: Debug TESZT env
hosts: all
gather_facts: False
tasks:
- name: TESZT env
debug:
msg: "A TESZT változó értéke: {{ lookup('env', 'TESZT') }}"
+6
View File
@@ -0,0 +1,6 @@
- name: Ping all hosts
hosts: all
gather_facts: False
tasks:
- name: Ping
ansible.builtin.ping:
+22
View File
@@ -0,0 +1,22 @@
---
- hosts: all
become: yes
tasks:
- name: csomagok frissítése [RedHat/yum]
yum:
name: '*'
state: latest
security: no
skip_broken: yes
when:
- ansible_os_family == "RedHat"
- name: csomagok frissítése [Debian/Ubuntu]
apt:
update_cache: yes
upgrade: yes
autoclean: yes
autoremove: yes
force_apt_get: true
when:
- ansible_os_family == "Debian"
+5
View File
@@ -0,0 +1,5 @@
---
- hosts: all
tasks:
- name: who am I
ansible.builtin.shell: whoami