Browse Source

Merge "Optimize container_cli usage by mysql-open-files-limit validation" into stable/train

changes/23/761623/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
fc0fa9b5af
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      roles/mysql_open_files_limit/tasks/main.yml

+ 3
- 3
roles/mysql_open_files_limit/tasks/main.yml View File

@ -1,13 +1,13 @@
---
- name: Set container_cli fact from the inventory
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
become: true
shell: >-
"{{ container_cli|default('podman', true) }}" exec -u root
$("{{ container_cli|default('podman', true) }}" ps -q --filter "name=mysql|galera-bundle" | head -1)
"{{ container_cli }}" exec -u root
$("{{ container_cli }}" ps -q --filter "name=mysql|galera-bundle" | head -1)
/bin/bash -c 'ulimit -n'
changed_when: false
register: mysqld_open_files_limit


Loading…
Cancel
Save