initial commit
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2019-02-01 21:30:07 +01:00
parent 4347e6a5f8
commit cfec82e91e
6 changed files with 107 additions and 0 deletions

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
---
kind: pipeline
name: default
steps:
- name: ansible-latest
image: python:2.7
pull: always
commands:
- pip install ansible ansible-later -q
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
depends_on: [ clone ]
- name: ansible-master
image: python:2.7
pull: always
commands:
- pip install ansible ansible-later -q
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
depends_on: [ clone ]
- name: notify
image: plugins/matrix
settings:
homeserver: https://matrix.rknet.org
roomid: MtidqQXWWAtQcByBhH:rknet.org
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username:
from_secret: matrix_username
password:
from_secret: matrix_password
depends_on:
- ansible-latest
- ansible-master
when:
status:
- success
- failure

16
defaults/main.yml Normal file
View File

@ -0,0 +1,16 @@
---
jellyfin_version: 10.1
jellyfin_user: jellyfin
jellyfin_user_home: "/home/{{ jellyfin_user }}"
# jellyfin_uid: # defaults to not set
jellyfin_group: "{{ jellyfin_user }}"
# jellyfin_gid: # defaults to not set
jellyfin_extra_groups: []
jellyfin_dependencies:
- lttng-ust
- libcurl
- openssl-libs
- krb5-libs
- libicu
- zlib

1
handlers/main.yml Normal file
View File

@ -0,0 +1 @@
---

12
meta/main.yml Normal file
View File

@ -0,0 +1,12 @@
---
galaxy_info:
author: Robert Kaussow
description:
license: Robert Kaussow
min_ansible_version: 2.6
platforms:
- name: EL
versions:
- 7
galaxy_tags:
dependencies: []

2
tasks/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
- include_tasks: prepare.yml

36
tasks/prepare.yml Normal file
View File

@ -0,0 +1,36 @@
---
- block:
- name: Create group '{{ jellyfin_group }}'
group:
name: "{{ jellyfin_group }}"
state: present
gid: "{{ jellyfin_gid | default(omit) }}"
- name: Create user '{{ jellyfin_user }}'
user:
comment: jellyfin
name: "{{ jellyfin_user }}"
home: "{{ jellyfin_user_home }}"
uid: "{{ jellyfin_uid | default(omit) }}"
group: "{{ jellyfin_group }}"
groups: "{{ jellyfin_extra_groups | join(',') }}"
- name: Add .Net repository
yum_repository:
name: packages-microsoft-com-prod
description: RPMforge YUM repo
file: Dotnet-Dev
baseurl: "https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod/"
enabled: yes
gpgcheck : yes
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
- name: Install dependencies
package:
name: "{{ item }}"
state: present
loop:
- "{{ jellyfin_dependencies }}"
- dotnet-sdk-2.2
become: True
become_user: root