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

NFS Ansible Automation playbook creation and usage

We are going to delve deeper into the Ansible Automation playbook. We will fully break it down for the NFS exports. We are going to show each step of the playbook and what each item does. By item, we are referring to the variables and commands set within an Ansible playbook:

---
- hosts: exports
  become: true
  become_method: sudo

Here, we have the beginning of the playbook. The hosts are the targets of the playbook. These are normally the servers you want to make changes to. These are listed in the inventory file. In this case, we are targeting the exports group. In this case, become tells Ansible that you want to elevate the user, and become_method tells it that you want to use sudo to elevate the permissions:

  tasks:
  - name: Make sure Directory exists
    file:
      path: /share/folder
      owner...
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