# Verify non-async jobs run in-process.

- name: integration/runner/forking_inactive.yml
  hosts: test-targets
  tasks:
  - include_tasks: ../_mitogen_only.yml

  - name: get process ID.
    custom_python_detect_environment:
    register: sync_proc1

  - name: get process ID again.
    custom_python_detect_environment:
    register: sync_proc2

  - assert:
      that:
      - sync_proc1.pid == sync_proc2.pid
      fail_msg: |
        sync_proc1={{ sync_proc1 }}
        sync_proc2={{ sync_proc2 }}

  tags:
    - forking_inactive
    - mitogen_only
