mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
Adjust YAML files (#10233)
Adjust YAML files.
(cherry picked from commit eaa5e07b28
)
This commit is contained in:
parent
e8ff74f077
commit
a9e892952d
244 changed files with 7272 additions and 7329 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue