mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Activated update for debian
This commit is contained in:
parent
baeef4aad2
commit
6e4ae4d03b
@ -2,6 +2,15 @@
|
|||||||
## Description
|
## Description
|
||||||
Ansible script to manage servers.
|
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
|
## Update
|
||||||
Follow the best [practices for inventories](https://docs.ansible.com/ansible/2.3/playbooks_best_practices.html) and execute ansible via:
|
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:
|
dependencies:
|
||||||
- native-ssh
|
- 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
|
- name: general host setup
|
||||||
hosts: arch_hosts
|
hosts: all
|
||||||
|
roles:
|
||||||
|
- system-security
|
||||||
|
- system-update
|
||||||
|
become: true
|
||||||
|
- name: setup wireguard hosts
|
||||||
|
hosts: wireguard_hosts
|
||||||
roles:
|
roles:
|
||||||
- native-security
|
|
||||||
- native-pacman
|
|
||||||
- native-wireguard
|
- native-wireguard
|
||||||
- native-user-alarm
|
- name: setup primary backup hosts
|
||||||
- name: setup primary_backup_hosts
|
|
||||||
hosts: primary_backup_hosts
|
hosts: primary_backup_hosts
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: "check if docker is installed"
|
- name: "check if docker is installed"
|
||||||
|
Loading…
Reference in New Issue
Block a user