first upload
This commit is contained in:
8
playbook/env.yml
Normal file
8
playbook/env.yml
Normal 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
playbook/pingall.yml
Normal file
6
playbook/pingall.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: Ping all hosts
|
||||
hosts: all
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- name: Ping
|
||||
ansible.builtin.ping:
|
22
playbook/upgrade.yml
Normal file
22
playbook/upgrade.yml
Normal 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
playbook/whoami.yml
Normal file
5
playbook/whoami.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: who am I
|
||||
ansible.builtin.shell: whoami
|
Reference in New Issue
Block a user