mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
Activated update for debian
This commit is contained in:
parent
baeef4aad2
commit
6e4ae4d03b
@ -2,6 +2,15 @@
|
||||
## Description
|
||||
Ansible script to manage servers.
|
||||
|
||||
## roles
|
||||
The system use the following role namings:
|
||||
|
||||
| role prefix | meaning|
|
||||
|---|---|
|
||||
|system-|system changes|
|
||||
|native-|applications which run native on the system|
|
||||
|docker-|applications which run on docker containers on the system|
|
||||
|
||||
## Update
|
||||
Follow the best [practices for inventories](https://docs.ansible.com/ansible/2.3/playbooks_best_practices.html) and execute ansible via:
|
||||
|
||||
|
5
roles/native-apt-update/readme.md
Normal file
5
roles/native-apt-update/readme.md
Normal file
@ -0,0 +1,5 @@
|
||||
# role native-apt-update
|
||||
This role updates the packages
|
||||
|
||||
# upgrade
|
||||
Keep in mind that you have to do the upgrade manual because debian based distributions are no runing release
|
4
roles/native-apt-update/tasks/main.yml
Normal file
4
roles/native-apt-update/tasks/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
- name: apt update all packages to their latest version
|
||||
apt:
|
||||
name: "*"
|
||||
state: latest
|
@ -1,2 +1,3 @@
|
||||
dependencies:
|
||||
- native-ssh
|
||||
- native-user-alarm
|
3
roles/system-update/meta/main.yml
Normal file
3
roles/system-update/meta/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
dependencies:
|
||||
- { role: native-pacman-update, when: ansible_distribution == 'Archlinux' }
|
||||
- { role: native-apt-update, when: ansible_distribution == "Debian" }
|
15
site.yml
15
site.yml
@ -1,12 +1,15 @@
|
||||
---
|
||||
- name: setup arch hosts
|
||||
hosts: arch_hosts
|
||||
- name: general host setup
|
||||
hosts: all
|
||||
roles:
|
||||
- system-security
|
||||
- system-update
|
||||
become: true
|
||||
- name: setup wireguard hosts
|
||||
hosts: wireguard_hosts
|
||||
roles:
|
||||
- native-security
|
||||
- native-pacman
|
||||
- native-wireguard
|
||||
- native-user-alarm
|
||||
- name: setup primary_backup_hosts
|
||||
- name: setup primary backup hosts
|
||||
hosts: primary_backup_hosts
|
||||
pre_tasks:
|
||||
- name: "check if docker is installed"
|
||||
|
Loading…
Reference in New Issue
Block a user