mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix cosmetic problems in YAML source
This change corrects problems reported by the `yamllint` linter.
Since key duplication problems were removed in 4d48711
, this commit
mainly fixes trailing spaces and extra empty lines at beginning/end of
files.
This commit is contained in:
parent
8874c1dc39
commit
0e834fc9e4
251 changed files with 214 additions and 510 deletions
|
@ -1,4 +1,4 @@
|
|||
# test code to assert mysql user
|
||||
# test code to assert mysql user
|
||||
# (c) 2014, Wayne Rosario <wrosario@ansible.com>
|
||||
|
||||
# This file is part of Ansible
|
||||
|
@ -17,11 +17,11 @@
|
|||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# ============================================================
|
||||
- name: run command to query for mysql user
|
||||
- name: run command to query for mysql user
|
||||
command: mysql "-e SELECT User FROM mysql.user where user='{{ user_name }}';"
|
||||
register: result
|
||||
|
||||
- name: assert mysql user is present
|
||||
- name: assert mysql user is present
|
||||
assert: { that: "'{{ user_name }}' in result.stdout" }
|
||||
|
||||
- name: run command to show privileges for user (expect privileges in stdout)
|
||||
|
@ -29,6 +29,6 @@
|
|||
register: result
|
||||
when: priv is defined
|
||||
|
||||
- name: assert user has giving privileges
|
||||
- name: assert user has giving privileges
|
||||
assert: { that: "'GRANT {{priv}} ON *.*' in result.stdout" }
|
||||
when: priv is defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue