Added truenas update && playbook for fedora and debian hosts
This commit is contained in:
parent
5528de7414
commit
3c7ce0f8c5
7 changed files with 93 additions and 2 deletions
9
Playbooks/machine-update/update-debian-hosts.yaml
Normal file
9
Playbooks/machine-update/update-debian-hosts.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
- hosts: debian
|
||||
tasks:
|
||||
- name: update APT packages
|
||||
apt:
|
||||
upgrade: yes
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400
|
||||
8
Playbooks/machine-update/update-fedora-hosts.yaml
Normal file
8
Playbooks/machine-update/update-fedora-hosts.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
|
||||
- hosts: fedora
|
||||
tasks:
|
||||
- name: Upgrade all packages
|
||||
ansible.builtin.dnf:
|
||||
name: "*"
|
||||
state: latest
|
||||
10
Playbooks/machine-update/update-machines.yaml
Normal file
10
Playbooks/machine-update/update-machines.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
- hosts: fedora
|
||||
tasks:
|
||||
- name: Update fedora hosts
|
||||
include_tasks: update-fedora-hosts.yaml
|
||||
|
||||
- hosts: debian
|
||||
tasks:
|
||||
- name: Update debian hosts
|
||||
include_tasks: update-debian-hosts.yaml
|
||||
Loading…
Add table
Add a link
Reference in a new issue