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
• 18,520 points
2,084 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

How to write ansible playbook to setup ubuntu workstation and install any updates on it

Hi@Shashi, Ansible has one module named ec2. This is ...READ MORE

answered Nov 19, 2020 in Ansible by MD
• 95,460 points
1,257 views
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
11,924 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
• 52,350 points
9,645 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 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
668 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP