---
- name: Make sure sssd service is enabled
  runit:
    name: sssd
    enabled: yes
  environment: "{{ runit_env }}"
  tags:
    - sssd_config

- name: Make sure sssd service is running
  runit:
    name: sssd
    state: started
  environment: "{{ runit_env }}"
  register: sssd_service_started
  tags:
    - sssd_config
    - sssd_pkg

---
- name: Make sure sssd service is enabled
  runit:
    name: sssd
    enabled: yes
  environment: "{{ runit_env }}"
  tags:
    - sssd_config

- name: Give runsv some time to start sssd
  wait_for: path=/var/lib/sss/pipes/private/sbus-monitor state=present timeout=5
  tags:
    - sssd_config

- name: Make sure sssd service is running
  runit:
    name: sssd
    state: started
  environment: "{{ runit_env }}"
  register: sssd_service_started
  tags:
    - sssd_config
    - sssd_pkg

Add wait_for between enabling and checking status for runit services, to give runsv time to actually start the service
    Add wait_for between enabling and checking status for runit services, to give runsv time to actually start the service
