initial commit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-02-10 16:33:10 +01:00
parent 4ebe0caec4
commit 1918037d1c
11 changed files with 80 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

1
defaults/main.yml Normal file
View File

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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: []

18
tasks/install.yml Normal file
View 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
View File

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

6
vars/main.yml Normal file
View 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