added support for systemd management
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Tobias Trabelsi 2021-08-11 21:31:40 +02:00
parent 1b3337d422
commit bc7343a1f3
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
3 changed files with 21 additions and 7 deletions

View File

@ -54,7 +54,7 @@ steps:
image: lerentis/ansible:debian-7
commands:
- 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 -e "CI_RUN=true"
depends_on:
- "prepare_workspace"
@ -62,7 +62,7 @@ steps:
image: lerentis/ansible:ubuntu-16.04
commands:
- 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 -e "CI_RUN=true"
depends_on:
- "prepare_workspace"
@ -70,7 +70,7 @@ steps:
image: lerentis/ansible:ubuntu-18.04
commands:
- 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 -e "CI_RUN=true"
depends_on:
- "prepare_workspace"
@ -78,7 +78,7 @@ steps:
image: lerentis/ansible:ubuntu-20.04
commands:
- 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 -e "CI_RUN=true"
depends_on:
- "prepare_workspace"
@ -116,7 +116,7 @@ steps:
commands:
- pacman -Sy python2 glibc --noconfirm
- 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 -e "CI_RUN=true"
depends_on:
- "prepare_workspace"
@ -153,7 +153,7 @@ steps:
image: lerentis/ansible:centos-7
commands:
- 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 -e "CI_RUN=true"
depends_on:
- "prepare_workspace"

View File

@ -2,3 +2,8 @@
install: true
package_list:
- "apt"
stop_service_list:
- rpc-statd
- portmap
- rpcbind

View File

@ -15,4 +15,13 @@
- include_tasks: update-Arch.yml
when:
- ansible_os_family == 'Archlinux'
- ansible_os_family == 'Archlinux'
- name: stop services
become: yes
systemd:
name: "{{ item }}"
state: stopped
enabled: no
with_items: stop_service_list
when: "CI_RUN != true"