This commit is contained in:
parent
4ebe0caec4
commit
1918037d1c
40
.drone.yml
Normal file
40
.drone.yml
Normal 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
|
1
defaults/main.yml
Normal file
1
defaults/main.yml
Normal file
@ -0,0 +1 @@
|
||||
---
|
BIN
files/cups-2.2.10-0.x86_64.rpm
Normal file
BIN
files/cups-2.2.10-0.x86_64.rpm
Normal file
Binary file not shown.
BIN
files/cups-devel-2.2.10-0.x86_64.rpm
Normal file
BIN
files/cups-devel-2.2.10-0.x86_64.rpm
Normal file
Binary file not shown.
BIN
files/cups-libs-2.2.10-0.x86_64.rpm
Normal file
BIN
files/cups-libs-2.2.10-0.x86_64.rpm
Normal file
Binary file not shown.
BIN
files/cups-lpd-2.2.10-0.x86_64.rpm
Normal file
BIN
files/cups-lpd-2.2.10-0.x86_64.rpm
Normal file
Binary file not shown.
1
handlers/main.yml
Normal file
1
handlers/main.yml
Normal file
@ -0,0 +1 @@
|
||||
---
|
12
meta/main.yml
Normal file
12
meta/main.yml
Normal 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: []
|
18
tasks/install.yml
Normal file
18
tasks/install.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
- block:
|
||||
- name: Copy cups rpms to destination host
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/var/tmp/{{ item }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0640
|
||||
loop: "{{ __cups_rpm_files }}"
|
||||
|
||||
- name: Install cups rpms
|
||||
yum:
|
||||
name: "/var/tmp/{{ item }}"
|
||||
state: present
|
||||
loop: "{{ __cups_rpm_files }}"
|
||||
become: True
|
||||
become_user: root
|
2
tasks/main.yml
Normal file
2
tasks/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
- include_tasks: install.yml
|
6
vars/main.yml
Normal file
6
vars/main.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
__cups_rpm_files:
|
||||
- files/cups-2.2.10-0.x86_64.rpm
|
||||
- files/cups-devel-2.2.10-0.x86_64.rpm
|
||||
- files/cups-libs-2.2.10-0.x86_64.rpm
|
||||
- files/cups-lpd-2.2.10-0.x86_64.rpm
|
Loading…
Reference in New Issue
Block a user