This commit is contained in:
parent
2faf588406
commit
918c154b66
66
.drone.yml
66
.drone.yml
@ -1,15 +1,12 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: ansible-test
|
name: prepare_workspace
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
concurrency:
|
|
||||||
limit: 9
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: prepare_workspace
|
- name: prepare_workspace
|
||||||
@ -27,55 +24,96 @@ steps:
|
|||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: test-debian
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
- name: test-debian7
|
- name: test-debian7
|
||||||
image: lerentis/ansible:debian-7
|
image: lerentis/ansible:debian-7
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
||||||
depends_on:
|
|
||||||
- prepare_workspace
|
|
||||||
|
|
||||||
- name: test-ubuntu16
|
- name: test-ubuntu16
|
||||||
image: lerentis/ansible:ubuntu-16.04
|
image: lerentis/ansible:ubuntu-16.04
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
||||||
depends_on:
|
|
||||||
- prepare_workspace
|
|
||||||
|
|
||||||
- name: test-ubuntu18
|
- name: test-ubuntu18
|
||||||
image: lerentis/ansible:ubuntu-18.04
|
image: lerentis/ansible:ubuntu-18.04
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
||||||
depends_on:
|
|
||||||
- prepare_workspace
|
|
||||||
|
|
||||||
- name: test-ubuntu20
|
- name: test-ubuntu20
|
||||||
image: lerentis/ansible:ubuntu-20.04
|
image: lerentis/ansible:ubuntu-20.04
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare_workspace
|
- prepare_workspace
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: test-arch
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
- name: test-arch
|
- name: test-arch
|
||||||
image: lerentis/ansible:arch
|
image: lerentis/ansible:arch
|
||||||
commands:
|
commands:
|
||||||
- pacman -S python2 --noconfirm
|
- pacman -S python2 --noconfirm
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare_workspace
|
- prepare_workspace
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: test-centos
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
- name: test-centos7
|
- name: test-centos7
|
||||||
image: lerentis/ansible:centos-7
|
image: lerentis/ansible:centos-7
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
|
||||||
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
- ansible-playbook -i tests/inventory tests/test-playbook.yml
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare_workspace
|
- prepare_workspace
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: notify
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
settings:
|
settings:
|
||||||
@ -86,11 +124,9 @@ steps:
|
|||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare_workspace
|
- prepare_workspace
|
||||||
- test-debian7
|
- test-debian
|
||||||
- test-ubuntu16
|
|
||||||
- test-ubuntu18
|
|
||||||
- test-ubuntu20
|
|
||||||
- test-arch
|
- test-arch
|
||||||
- test-centos7
|
- test-centos
|
@ -34,13 +34,13 @@
|
|||||||
- "{{ package_list }}"
|
- "{{ package_list }}"
|
||||||
when: install and ansible_os_family == "Debian"
|
when: install and ansible_os_family == "Debian"
|
||||||
|
|
||||||
#- name: Check if a reboot is required
|
- name: Check if a reboot is required
|
||||||
# register: reboot_required_file
|
register: reboot_required_file
|
||||||
# stat:
|
stat:
|
||||||
# path: /var/run/reboot-required get_md5=no
|
path: /var/run/reboot-required get_md5=no
|
||||||
#
|
|
||||||
#- name: Needs Reboot
|
- name: Needs Reboot
|
||||||
# debug:
|
debug:
|
||||||
# msg: "Restart Required!!"
|
msg: "Restart Required!!"
|
||||||
# ignore_errors: true
|
ignore_errors: true
|
||||||
# when: reboot_required_file.stat.exists == true
|
when: reboot_required_file.stat.exists == true
|
Loading…
Reference in New Issue
Block a user