mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-23 22:41:43 -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
|
@ -15,45 +15,45 @@
|
|||
- ansible_version.minor != 16 or ansible_distribution not in ['CentOS', 'openSUSE Leap']
|
||||
block:
|
||||
- block:
|
||||
- tempfile:
|
||||
state: directory
|
||||
suffix: supervisorctl-tests
|
||||
register: supervisord_sock_path
|
||||
- tempfile:
|
||||
state: directory
|
||||
suffix: supervisorctl-tests
|
||||
register: supervisord_sock_path
|
||||
|
||||
- command: 'echo {{ remote_tmp_dir }}'
|
||||
register: echo
|
||||
- set_fact:
|
||||
remote_dir: '{{ echo.stdout }}'
|
||||
- command: 'echo {{ remote_tmp_dir }}'
|
||||
register: echo
|
||||
- set_fact:
|
||||
remote_dir: '{{ echo.stdout }}'
|
||||
|
||||
- include_vars: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- '{{ ansible_distribution }}.yml'
|
||||
- '{{ ansible_os_family }}.yml'
|
||||
- 'defaults.yml'
|
||||
- include_vars: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- '{{ ansible_distribution }}.yml'
|
||||
- '{{ ansible_os_family }}.yml'
|
||||
- 'defaults.yml'
|
||||
|
||||
- include_tasks: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- 'install_{{ ansible_distribution }}.yml' # CentOS
|
||||
- 'install_{{ ansible_os_family }}.yml' # RedHat
|
||||
- 'install_{{ ansible_system }}.yml' # Linux
|
||||
- include_tasks: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- 'install_{{ ansible_distribution }}.yml' # CentOS
|
||||
- 'install_{{ ansible_os_family }}.yml' # RedHat
|
||||
- 'install_{{ ansible_system }}.yml' # Linux
|
||||
|
||||
- include_tasks: test.yml
|
||||
with_items:
|
||||
- include_tasks: test.yml
|
||||
with_items:
|
||||
- { username: '', password: '' }
|
||||
- { username: 'testétest', password: 'passéword' } # non-ASCII credentials
|
||||
loop_control:
|
||||
loop_var: credentials
|
||||
loop_control:
|
||||
loop_var: credentials
|
||||
|
||||
always:
|
||||
- include_tasks: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- 'uninstall_{{ ansible_distribution }}.yml' # CentOS
|
||||
- 'uninstall_{{ ansible_os_family }}.yml' # RedHat
|
||||
- 'uninstall_{{ ansible_system }}.yml' # Linux
|
||||
- include_tasks: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- 'uninstall_{{ ansible_distribution }}.yml' # CentOS
|
||||
- 'uninstall_{{ ansible_os_family }}.yml' # RedHat
|
||||
- 'uninstall_{{ ansible_system }}.yml' # Linux
|
||||
|
||||
- file:
|
||||
path: '{{ supervisord_sock_path.path }}'
|
||||
state: absent
|
||||
- file:
|
||||
path: '{{ supervisord_sock_path.path }}'
|
||||
state: absent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue