Suppress command/shell warnings

This patch prevents warnings from being thrown when using rpm,
yum, or dnf with a shell or command module.

Change-Id: I8707aa2652aed643b6ddfb20bfd843b226e9bb61
This commit is contained in:
Major Hayden 2017-10-10 14:30:36 -05:00
parent bc8a4826ac
commit 839682ccd4
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
3 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,8 @@
# cleaned out whenever the repo config changes.
- name: Force the expiry of the repo metadata
command: "{{ ansible_pkg_mgr }} clean metadata"
args:
warn: no
when: add_repos | changed
tags:
- galera-repos

View File

@ -36,6 +36,7 @@
service mysql stop
args:
creates: "{{ mysql_securely_configured }}"
warn: no
tags:
- galera_server-config
- galera-rhel-config

View File

@ -15,6 +15,8 @@
- name: Check major galera install version
command: "rpm -qi '{{ galera_mariadb_server_package }}'"
args:
warn: no
failed_when: false
register: installed_galera_specific
when: