Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Red Hat Certified Specialist in Services Management and Automation EX358 Exam Guide

You're reading from   Red Hat Certified Specialist in Services Management and Automation EX358 Exam Guide Get your certification and prepare for real-world challenges as a Red Hat Certified Specialist

Arrow left icon
Product type Paperback
Published in Feb 2023
Publisher Packt
ISBN-13 9781803235493
Length 350 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Eric McLeroy Eric McLeroy
Author Profile Icon Eric McLeroy
Eric McLeroy
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Part 1: Red Hat Linux 8 –Configuring and Maintaining Storage with Automation
2. Chapter 1: Block Storage – Learning How to Provision Block Storage on Red Hat Enterprise Linux FREE CHAPTER 3. Chapter 2: Network File Storage – Expanding Your Knowledge of How to Share Data 4. Part 2: Red Hat Linux 8 – Configuring and Maintaining Networking with Automation
5. Chapter 3: Network Services with Automation – Introduction to Red Hat Linux Networking 6. Chapter 4: Link Aggregation Creation – Creating Your Own Link and Mastering the Networking Domain 7. Chapter 5: DNS, DHCP, and IP Addressing – Gaining Deeper Knowledge of Red Hat Linux Networking 8. Part 3: Red Hat Linux 8 – Configuring and Maintaining Applications with Automation and a Comprehensive Review with Exam Tips
9. Chapter 6: Printer and Email – Setting Up Printers and Email Services on Linux Servers 10. Chapter 7: Databases – Setting Up and Working with MariaDB SQL Databases 11. Chapter 8: Web Servers and Web Traffic – Learning How to Create and Control Traffic 12. Chapter 9: Comprehensive Review and Test Exam Questions 13. Chapter 10: Tips and Tricks to Help with the Exam 14. Index 15. Other Books You May Enjoy

Installing and configuring MariaDB on RHEL 8 using Ansible Automation

We will start with the inventory file to set up the MariaDB servers and configure them with users. We will then go into manipulating data within the created MariaDB system using loops to add things such as tables and database entries. We will then use Ansible Automation to show how to retrieve information from the MariaDB database so that you can provide information from your database to end users. Please ensure that the server you are running this playbook against has not had MariaDB installed previously, or you will receive errors when trying to set the root password.

First, we are going to start with an inventory file, which can be seen in the following screenshot:

Figure 7.22 – Ansible Automation inventory file

Figure 7.22 – Ansible Automation inventory file

From there, we are going to create the ansible.cfg file within our directory so that we can skip host_key_checking, as it causes issues with connectivity. We can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image