[stable-10] Adjust YAML files (#10233) (#10244)

Adjust YAML files (#10233)

Adjust YAML files.

(cherry picked from commit eaa5e07b28)
This commit is contained in:
Felix Fontein 2025-06-15 10:02:03 +02:00 committed by GitHub
commit a9e892952d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
244 changed files with 7272 additions and 7329 deletions

View file

@ -20,67 +20,67 @@
become: true
become_user: "{{ brew_stat.stat.pw_name }}"
block:
- name: MACOS | Install black
community.general.homebrew:
name: black
state: present
register: install_result
notify:
- uninstall black
- name: MACOS | Install black
community.general.homebrew:
name: black
state: present
register: install_result
notify:
- uninstall black
- name: Check the black service is installed
assert:
that:
- install_result is success
- name: Check the black service is installed
assert:
that:
- install_result is success
- name: Start the black service
community.general.homebrew_services:
name: black
state: present
register: start_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Start the black service
community.general.homebrew_services:
name: black
state: present
register: start_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Check the black service is running
assert:
that:
- start_result is success
- name: Check the black service is running
assert:
that:
- start_result is success
- name: Start the black service when already started
community.general.homebrew_services:
name: black
state: present
register: start_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Start the black service when already started
community.general.homebrew_services:
name: black
state: present
register: start_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Check for idempotency
assert:
that:
- start_result.changed == 0
- name: Check for idempotency
assert:
that:
- start_result.changed == 0
- name: Restart the black service
community.general.homebrew_services:
name: black
state: restarted
register: restart_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Restart the black service
community.general.homebrew_services:
name: black
state: restarted
register: restart_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Check the black service is restarted
assert:
that:
- restart_result is success
- name: Check the black service is restarted
assert:
that:
- restart_result is success
- name: Stop the black service
community.general.homebrew_services:
name: black
state: present
register: stop_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Stop the black service
community.general.homebrew_services:
name: black
state: present
register: stop_result
environment:
HOMEBREW_NO_ENV_HINTS: "1"
- name: Check the black service is stopped
assert:
that:
- stop_result is success
- name: Check the black service is stopped
assert:
that:
- stop_result is success