File: pre.yml

package info (click to toggle)
python-oslo.cache 3.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 784 kB
  • sloc: python: 3,059; makefile: 24; sh: 2
file content (20 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- hosts: all
  vars:
    oslo_cache_backend_daemon: "{{ tox_environment.PIFPAF_DAEMON }}"
  roles:
    - role: bindep
      bindep_profile: "tests-functional-{{ oslo_cache_backend_daemon }}"
  tasks:
    - name: Include OS-specific variables
      include_vars: "{{ ansible_os_family }}.yaml"
    # NOTE(yoctozepto): Debian and Ubuntu have this nasty policy of starting
    # installed services for us. We don't rely on system-wide service and use
    # pifpaf. Unfortunately, default port may conflict with system-wide service.
    # So, for sanity and resource conservation, let's stop it before tests run.
    - name: "Stop backend services"
      service:
        name: "{{ item }}"
        state: stopped
        enabled: no
      become: yes
      loop: "{{ backend_services_map[oslo_cache_backend_daemon] }}"