Added truenas update && playbook for fedora and debian hosts
This commit is contained in:
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
|
Reference in New Issue
Block a user