| 1 |
- hosts: all |
| 2 |
vars: |
| 3 |
taskflow_backend_daemon: "{{ tox_environment.PIFPAF_DAEMON }}" |
| 4 |
roles: |
| 5 |
- role: bindep |
| 6 |
bindep_profile: "tests-functional-{{ taskflow_backend_daemon }}" |
| 7 |
tasks: |
| 8 |
- name: Include OS-specific variables |
| 9 |
include_vars: "{{ ansible_os_family }}.yaml" |
| 10 |
# NOTE(yoctozepto): Debian and Ubuntu have this nasty policy of starting |
| 11 |
# installed services for us. We don't rely on system-wide service and use |
| 12 |
# pifpaf. Unfortunately, default port may conflict with system-wide service. |
| 13 |
# So, for sanity and resource conservation, let's stop it before tests run. |
| 14 |
- name: "Stop backend services" |
| 15 |
service: |
| 16 |
name: "{{ item }}" |
| 17 |
state: stopped |
| 18 |
enabled: no |
| 19 |
become: yes |
| 20 |
loop: "{{ backend_services_map[taskflow_backend_daemon] }}" |
| 21 |
- name: Remove ZOO_LOG_DIR |
| 22 |
lineinfile: |
| 23 |
path: /etc/zookeeper/conf/environment |
| 24 |
regexp: '^ZOO_LOG_DIR=.*' |
| 25 |
state: absent |
| 26 |
become: yes |
| 27 |
when: taskflow_backend_daemon == 'zookeeper' |