This is my playbook (from a post by Lorin Hochstein) See Ansible idempotent MySQL installation Playbook This is my playbook (converted for apt and Ubuntu) - hosts: carme. If you don’t know how to SSH into your VPS/Server, you can refer to the following tutorial: How to login to Linux VPS with SSH protocol. I am trying to set up MySQL reasonably secured, on Ubuntu 22.04, using Ansible. Adjust the version and the parameters of my.cnf as needed. Install Howto Install mysql-apt-config deb: sudo dpkg -i b Update the package index: sudo apt-get update Install mysql-common deb. Step 1: SSH into your Ubuntu 20.04 system To install MySQL on Ubuntu 20.04, we first need to SSH or access your VPS/server as root or a user with sudo privileges. This example shows MariaDB server installation on Ubuntu Xenial. 1 I am trying to set up MySQL reasonably secured, on Ubuntu 22.04, using Ansible. Once the repositories are set up, you will run Ubuntu’s standard apt command to install the software. deb package that configures and installs the official MySQL software repositories. To customize options, such as the root password or /etc/my.cnf settings, you must also pass in an override hash: class Install the MariaDB server Step 1 Adding the MySQL Software Repository. To install a server with the default options: This module manages both the installation and configuration of MySQL, as well as extending Puppet to allow management of MySQL resources, such as databases, users, and grants. The mysql module installs, configures, and manages the MySQL service.
0 Comments
Leave a Reply. |