add notify task to drone config; use state present for package install
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f2ed5ea67b
commit
7fab29d9df
24
.drone.yml
24
.drone.yml
@ -10,7 +10,8 @@ steps:
|
|||||||
- pip install ansible ansible-later -q
|
- pip install ansible ansible-later -q
|
||||||
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
||||||
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
||||||
depends_on: [ clone ]
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
- name: ansible-master
|
- name: ansible-master
|
||||||
image: python:2.7
|
image: python:2.7
|
||||||
@ -19,4 +20,23 @@ steps:
|
|||||||
- pip install ansible ansible-later -q
|
- pip install ansible ansible-later -q
|
||||||
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
||||||
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
- git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
||||||
depends_on: [ clone ]
|
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
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
- name: Install yum-cron
|
- name: Install yum-cron
|
||||||
package:
|
package:
|
||||||
name: yum-cron
|
name: yum-cron
|
||||||
state: latest
|
state: present
|
||||||
|
|
||||||
- name: Ensure yum-cron is enabled and running
|
- name: Ensure yum-cron is enabled and running
|
||||||
service:
|
service:
|
||||||
|
Loading…
Reference in New Issue
Block a user