Variables needed to write ansible playbook to install Mysql and mariadb on ubuntu

0 votes
I am trying to write an ansible playbook to install MySQL and MariaDB on an ubuntu instance. What variables will I need? Can someone please help me out with it?

Thanks!
Oct 24, 2019 in Ansible by Hannah
• 17,560 points
224 views

1 answer to this question.

0 votes

You need three main variables, one to hold the user's home, another to hold user name and the third to hold the user's password.

mysql_user_home: /root
mysql_user_name: root
mysql_user_password: root
answered Oct 24, 2019 by Bob

Related Questions In Ansible

0 votes
1 answer

Playbook to install and start nginx on ubuntu

Write your playbook like this: --- - hosts: droplets ...READ MORE

answered Mar 15, 2019 in Ansible by Deep
798 views
0 votes
1 answer
+1 vote
1 answer

Ansible-playbook to install and configure Nginx+Nodejs+Npm+PM2

Try thhis out: --- - hosts: hosts tasks: ...READ MORE

answered Sep 3, 2019 in Ansible by Kalgi
• 50,570 points
397 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
303 views
0 votes
1 answer
0 votes
1 answer

Requirements to install MySQL and MariaDB on ubuntu - Ansible

You don't really need anything specific. Just ...READ MORE

answered Oct 24, 2019 in Ansible by Bob
47 views