added support for systemd management
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
1b3337d422
commit
bc7343a1f3
12
.drone.yml
12
.drone.yml
@ -54,7 +54,7 @@ steps:
|
|||||||
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 -e "CI_RUN=true"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "prepare_workspace"
|
- "prepare_workspace"
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ steps:
|
|||||||
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 -e "CI_RUN=true"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "prepare_workspace"
|
- "prepare_workspace"
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ steps:
|
|||||||
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 -e "CI_RUN=true"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "prepare_workspace"
|
- "prepare_workspace"
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ steps:
|
|||||||
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 -e "CI_RUN=true"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "prepare_workspace"
|
- "prepare_workspace"
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- pacman -Sy python2 glibc --noconfirm
|
- 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 --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:
|
depends_on:
|
||||||
- "prepare_workspace"
|
- "prepare_workspace"
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ steps:
|
|||||||
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 -e "CI_RUN=true"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "prepare_workspace"
|
- "prepare_workspace"
|
||||||
|
|
||||||
|
@ -2,3 +2,8 @@
|
|||||||
install: true
|
install: true
|
||||||
package_list:
|
package_list:
|
||||||
- "apt"
|
- "apt"
|
||||||
|
|
||||||
|
stop_service_list:
|
||||||
|
- rpc-statd
|
||||||
|
- portmap
|
||||||
|
- rpcbind
|
@ -16,3 +16,12 @@
|
|||||||
- include_tasks: update-Arch.yml
|
- include_tasks: update-Arch.yml
|
||||||
when:
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user