Started modifying for nas
This commit is contained in:
parent
18ae3aaf4e
commit
9f77e30161
6 changed files with 68 additions and 62 deletions
42
roles/packages/tasks/main.yml
Normal file
42
roles/packages/tasks/main.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
- name: Install required packages for adding GPG keys
|
||||
apt:
|
||||
name:
|
||||
- debian-keyring
|
||||
- debian-archive-keyring
|
||||
- apt-transport-https
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Add GPG keys
|
||||
apt_key:
|
||||
url: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- https://dl.cloudsmith.io/public/caddy/stable/gpg.key
|
||||
- https://repo.jellyfin.org/debian/jellyfin_team.gpg.key
|
||||
|
||||
- name: Add Caddy repositories
|
||||
apt_repository:
|
||||
repo: "{{ item }} https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main"
|
||||
filename: 'caddy-stable'
|
||||
state: present
|
||||
with_items:
|
||||
- deb
|
||||
- deb-src
|
||||
|
||||
- name: Add Jellyfin repository
|
||||
apt_repository:
|
||||
repo: "deb https://repo.jellyfin.org/debian bullseye main"
|
||||
filename: 'jellyfin'
|
||||
state: present
|
||||
|
||||
- name: Install packages
|
||||
apt:
|
||||
name:
|
||||
- vim
|
||||
- caddy
|
||||
- jellyfin
|
||||
- ufw
|
||||
- samba
|
||||
state: present
|
||||
update_cache: true
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
- name: 'Install Python 3'
|
||||
apt:
|
||||
name:
|
||||
- python3
|
||||
- python3-pip
|
||||
state: present
|
||||
|
||||
- name: 'Remove Python 2.'
|
||||
apt:
|
||||
name:
|
||||
- python
|
||||
- python2
|
||||
- python2.7
|
||||
- python-minimal
|
||||
- python2-minimal
|
||||
- python2.7-minimal
|
||||
state: absent
|
||||
purge: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue