fix test statements

This commit is contained in:
LinuxSquare 2024-12-01 20:27:54 +01:00
parent 074b6ac04c
commit edd27d4cbf
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
tasks: tasks:
- name: Test if mysql has been secured - name: Test if mysql has been secured
shell: | shell: |
test /var/lib/mysql/.secured test -f /var/lib/mysql/.secured
register: MYSQL_SECURED register: MYSQL_SECURED
- name: mysql_secure_installation - name: mysql_secure_installation
mysql_secure_installation: mysql_secure_installation:

View file

@ -2,7 +2,7 @@
tasks: tasks:
- name: Test if directory exists - name: Test if directory exists
shell: | shell: |
test /var/lib/mysql/mysql test -d /var/lib/mysql/mysql
register: MYSQL_DIRECTORY_EXISTS register: MYSQL_DIRECTORY_EXISTS
- name: MariaDB setup - name: MariaDB setup
shell: | shell: |