diff --git a/tasks/galera_install_dnf.yml b/tasks/galera_install_dnf.yml index 80c28d65..09f63749 100644 --- a/tasks/galera_install_dnf.yml +++ b/tasks/galera_install_dnf.yml @@ -33,7 +33,6 @@ changed_when: _remove_existing_mariadb_packages.rc == 2 failed_when: _remove_existing_mariadb_packages.rc not in [0, 2] args: - warn: no executable: /bin/bash # In CentOS systems, /etc/my.cnf.d may already exist on the @@ -133,8 +132,6 @@ # cleaned out whenever the repo config changes. - name: Force the expiry of the repo metadata command: "{{ ansible_facts['pkg_mgr'] }} clean metadata" - args: - warn: no when: add_galera_repos is changed tags: - skip_ansible_lint diff --git a/tasks/galera_server_upgrade_pre.yml b/tasks/galera_server_upgrade_pre.yml index 8e6bf1ab..b09ed04e 100644 --- a/tasks/galera_server_upgrade_pre.yml +++ b/tasks/galera_server_upgrade_pre.yml @@ -18,11 +18,9 @@ # cause the service stop task to fail. To cater for this # we only try to stop the service is it exists. - name: Check whether a mysql service exists yet - shell: >- - systemctl list-unit-files --state=enabled --type=service | grep "^{{ galera_mariadb_service_name }}.service .* enabled$" + shell: systemctl list-unit-files --state=enabled --type=service | grep "^{{ galera_mariadb_service_name }}.service .* enabled$" # noqa command-instead-of-module risky-shell-pipe args: executable: /bin/bash - warn: no changed_when: false failed_when: false register: _mysql_service_exists