De-duplicate the mysql_command alias

This commit is contained in:
Laurent Indermuehle 2023-01-04 13:15:24 +01:00
commit 90266f1ad5
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
10 changed files with 16 additions and 37 deletions

View file

@ -22,10 +22,6 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
- name: alias mysql command to include default options
set_fact:
mysql_command: "mysql -u{{ mysql_user }} -p{{ mysql_password }} -P{{ mysql_primary_port }} --protocol=tcp -h{{ gateway_addr }}"
- name: Check state present/absent
include_tasks: state_present_absent.yml
vars: