没有合适的资源?快使用搜索试试~ 我知道了~
首页RH294 - Red Hat System Administration III by Trey
RH294 - Red Hat System Administration III by Trey
需积分: 25 19 下载量 85 浏览量
更新于2023-03-03
评论
收藏 7.16MB PDF 举报
RedHat RH294 Training - RH294 - Red Hat System Administration III by Trey
资源详情
资源评论
资源推荐
Join the explorers, builders, and individuals who boldly offer
new solutions to old problems. For open source, innovation is
only possible because of the people behind it.
STUDENT WORKBOOK (ROLE)
Red Hat Enterprise Linux 8.0 RH294
RED HAT SYSTEM ADMINISTRATION III:
LINUX AUTOMATION
Edition 1
RH294-RHEL8.0-en-1-20190531 Copyright ©2019 Red Hat, Inc.
RED HAT SYSTEM
ADMINISTRATION
III: LINUX
AUTOMATION
RH294-RHEL8.0-en-1-20190531 Copyright ©2019 Red Hat, Inc.
Red Hat Enterprise Linux 8.0 RH294
Red Hat System Administration III: Linux Automation
Edition 1 20190531
Publication date 20190531
Authors: Trey Feagle, Herve Quatremain, Dallas Spohn, Adolfo Vazquez,
Morgan Weetman
Editor: Philip Sweany, Seth Kenlon, Jeff Tyson, Nicole Muller
Copyright © 2019 Red Hat, Inc.
The contents of this course and all its modules and related materials, including handouts to audience members, are
Copyright © 2019 Red Hat, Inc.
No part of this publication may be stored in a retrieval system, transmitted or reproduced in any way, including, but
not limited to, photocopy, photograph, magnetic, electronic or other record, without the prior written permission of
Red Hat, Inc.
This instructional program, including all material provided herein, is supplied without any guarantees from Red Hat,
Inc. Red Hat, Inc. assumes no liability for damages or legal action arising from the use or misuse of contents or details
contained herein.
If you believe Red Hat training materials are being used, copied, or otherwise improperly distributed please e-mail
training@redhat.com or phone toll-free (USA) +1 (866) 626-2994 or +1 (919) 754-3700.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, Hibernate, Fedora, the Infinity Logo, and RHCE are
trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a registered trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or
other countries.
The OpenStack® Word Mark and OpenStack Logo are either registered trademarks/service marks or trademarks/
service marks of the OpenStack Foundation, in the United States and other countries and are used with the
OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack
Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Portions of this course were adapted from the Ansible Lightbulb project. The material from that
project is available from https://github.com/ansible/lightbulb under the MIT License.
Document Conventions ix
Introduction xi
RedHat System Administration III: Linux Automation .................................... . ............... xi
Orientation to the Classroom Environment .................................... . ........................... xiii
Controlling Your Systems ........................................ ........................................ xiv
Internationalization ........... ......................................................................... . ............ xvi
1. Introducing Ansible 1
Automating Linux Administration with Ansible .............................................................. 2
Quiz: Automating Linux Administration with Ansible ...................................................... 8
Installing Ansible ................................................................. . ................................... 10
Guided Exercise: Installing Ansible ................................................... .......................... 14
Summary .......... ......................................................................... ............................. 16
2. Deploying Ansible 17
Building an Ansible Inventory ...................................................................... . ............. 18
Guided Exercise: Building an Ansible Inventory ................................................ . .......... 23
Managing Ansible Configuration Files ....................... . ............................................... 28
Guided Exercise: Managing Ansible Configuration Files .................................. . ............ 35
Running Ad Hoc Commands .............. . ..................................................................... 40
Guided Exercise: Running Ad Hoc Commands ............................................................ 47
Lab: Deploying Ansible ............................................................... . ............................ 52
Summary .......... ......................................................................... ............................. 61
3. Implementing Playbooks 63
Writing and Running Playbooks .......................... . ..................................................... 64
Guided Exercise: Writing and Running Playbooks ............................................ . .......... 70
Implementing Multiple Plays .................. .................................................................. 75
Guided Exercise: Implementing Multiple Plays ............................................. ............... 85
Lab: Implementing Playbooks ............................................................................... ... 92
Summary ............ ........................................................................ . .......................... 99
4. Managing Variables and Facts 101
Managing Variables ................. ......................................................................... . .... 102
Guided Exercise: Managing Variables ............................. . .......................................... 110
Managing Secrets ....................................................... ........................................... 116
Guided Exercise: Managing Secrets ................................. ......................................... 121
Managing Facts ........................................................................ . ............................ 124
Guided Exercise: Managing Facts ..................................................................... . ...... 133
Lab: Managing Variables and Facts .......................................... ................................ 138
Summary ........... . ........................................................................ . .......................... 151
5. Implementing Task Control 153
Writing Loops and Conditional Tasks ................... .................................................... 154
Guided Exercise: Writing Loops and Conditional Tasks ......... . ..................................... 164
Implementing Handlers ............................................................. . ............................ 168
Guided Exercise: Implementing Handlers ........... . ....................................................... 171
Handling Task Failure ............................................................................. . ............... 176
Guided Exercise: Handling Task Failure ........................................ . ........................... 180
Lab: Implementing Task Control ..................................................... . ........................ 189
Summary ............. . ........................................................................ . ....................... 197
6. Deploying Files to Managed Hosts 199
Modifying and Copying Files to Hosts .................................................................... 200
Guided Exercise: Modifying and Copying Files to Hosts ........................................... . 206
Deploying Custom Files with Jinja2 Templates ......................................................... . 217
Guided Exercise: Deploying Custom Files with Jinja2 Templates ......... . ....................... 222
RH294-RHEL8.0-en-1-20190531
v
剩余539页未读,继续阅读
anderscai
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 2022年中国足球球迷营销价值报告.pdf
- 房地产培训 -营销总每天在干嘛.pptx
- 黄色简约实用介绍_汇报PPT模板.pptx
- 嵌入式系统原理及应用:第三章 ARM编程简介_3.pdf
- 多媒体应用系统.pptx
- 黄灰配色简约设计精美大气商务汇报PPT模板.pptx
- 用matlab绘制差分方程Z变换-反变换-zplane-residuez-tf2zp-zp2tf-tf2sos-sos2tf-幅相频谱等等.docx
- 网络营销策略-网络营销团队的建立.docx
- 电子商务示范企业申请报告.doc
- 淡雅灰低面风背景完整框架创业商业计划书PPT模板.pptx
- 计算模型与算法技术:10-Iterative Improvement.ppt
- 计算模型与算法技术:9-Greedy Technique.ppt
- 计算模型与算法技术:6-Transform-and-Conquer.ppt
- 云服务安全风险分析研究.pdf
- 软件工程笔记(完整版).doc
- 电子商务网项目实例规划书.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0