Merge "Optimize container_cli usage by mysql-open-files-limit validation" into stable/train
This commit is contained in:
commit
fc0fa9b5af
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: Set container_cli fact from the inventory
|
- name: Set container_cli fact from the inventory
|
||||||
set_fact:
|
set_fact:
|
||||||
container_cli: "{{ hostvars[inventory_hostname].container_cli }}"
|
container_cli: "{{ hostvars[inventory_hostname].container_cli |default('podman', true) }}"
|
||||||
|
|
||||||
- name: Get the open_files_limit value
|
- name: Get the open_files_limit value
|
||||||
become: true
|
become: true
|
||||||
shell: >-
|
shell: >-
|
||||||
"{{ container_cli|default('podman', true) }}" exec -u root
|
"{{ container_cli }}" exec -u root
|
||||||
$("{{ container_cli|default('podman', true) }}" ps -q --filter "name=mysql|galera-bundle" | head -1)
|
$("{{ container_cli }}" ps -q --filter "name=mysql|galera-bundle" | head -1)
|
||||||
/bin/bash -c 'ulimit -n'
|
/bin/bash -c 'ulimit -n'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: mysqld_open_files_limit
|
register: mysqld_open_files_limit
|
||||||
|
|
Loading…
Reference in New Issue