388 - Red Hat Certified Engineer (RHEL 8) PDF - 1580499069
388 - Red Hat Certified Engineer (RHEL 8) PDF - 1580499069
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Cr eat e an d Wor k
w it h Roles
Section 10
An sible
Docu m en t at ion
Section 13
I n t r odu ct ion
Section 1
Abou t the
About t h eCourse
Cou r se
Basic Red Hat Cer t if ied Welcom e to the Linux Academ y Red Hat Cer t if ied En gin eer (RHEL
Adm in ist r at or Sk ills 8 RHCE) course.
Section 2
This course is designed to prepare you to sit and pass the Red Hat
Un der st an d Cor e Certified Engineer exam (EX294).
Com pon en t s of An sible
Section 3 As of the creation of this course, there are two versions of the Red
Hat Certified Engineer exam - one for Red Hat Enterprise Linux 7
I n st all an d Con f igu r e (EX300) and one for Red Hat Enterprise Linux 8 (EX294). This course
an An sible Con t r ol was created based on the objectives of the RHEL 8 version of the
Node exam which is EX294.
Section 4
This diagram will be used as a reference point throughout the
course and can be used as a study guide as you prepare for the
Con f igu r e An sible
M an aged Nodes exam .
Section 5
This course was split up, Rob creating all of the labs, and m e
teaching the lessons. We thank you for taking this course and look
Scr ipt Adm in ist r at ion
forward to working through the m aterial with you!
Task s
Section 6
M at t h ew Pear son
Rob M ar t i
Cr eat e An sible Plays
an d Playbook s Linux Academ y Training Architects
Section 7
Next
Back t o M ain
Introduction
Course Navigation Abou t t h e Exam
I n t r odu ct ion
Section 1
Abou t the
About t h eCourse
Cou r se
Abou t the
About t h eAuthor
Au t h or Exam For m at
About
Abou t the
t h eExam
Exam - It is a hands-on exam that requires you to
perform real-world tasks.
Basic Red Hat Cer t if ied
Adm in ist r at or Sk ills
- You will have four hours to com plete the exam .
Section 2 - You will be given m ultiple system s and m ust
install and configure Ansible in order to
Un der st an d Cor e perform system adm inistration tasks.
Com pon en t s of An sible
Section 3
- Your work will be evaluated by running the
playbooks created in the exam against fresh
I n st all an d Con f igu r e
system s.
an An sible Con t r ol - Internet access will not be provided and
Node candidates are not allowed to bring physical or
Section 4
electronic docum entation or notes.
- Exam results are usually reported within 3 days.
Con f igu r e An sible
M an aged Nodes
Section 5 The exam objectives can be viewed here:
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1 Topics in t h is sect ion in clu de:
Operate Running
System s
Log in t o a Cr eat e Files I n pu t / Ou t pu t
Configure Local Storage
Rem ot e Ser ver an d Redir ect ion
Create and Configure File via SSH Dir ect or ies
System s
File an d Syst em
I n st all an d Con f igu r e
Dir ect or y Docu m en t at ion
an An sible Con t r ol
Node Per m ission s
Section 4
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- Log in t o r em ot e ser ver : s s h us er _name@hos t
Configure Local Storage - Log ou t of h ost : ex i t
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- Cr eat e dir ect or y: mk di r <di r ec t or y _name>
Configure Local Storage - Cr eat e f ile: t ouc h f i l e or v i f i l e
- Rem ove dir ect or y: r m - r di r ec t or y or r mdi r
Create and Configure File ( f or empt y di r ec t or y )
System s - Rem ove f ile: r m f i l e
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- St an dar d ou t pu t (STDOUT): >, >>
Configure Local Storage - St an dar d in pu t (STDI N): <, <<
- St an dar d er r or (STDERR): 2>, 2>>
Create and Configure File - Pipes : |
System s
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- View w it h t ext edit or : vi f i l e
Configure Local Storage - Pr in t f ile con t en t s t o STDOUT: c at
- Pr in t lin es m at ch in g a pat t er n : gr ep
Create and Configure File
System s
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- Com pr ession opt ion s: gzip, bzip, xz, et c.
Configure Local Storage - Cr eat e ar ch ive:
t ar - c v z f ar c hi v e_name f i l e1 f i l e2
Create and Configure File - Ext r act ar ch ive:
System s t ar - x v z f ar c hi v e. gz
Deploy, Configure, and
Maintain system s
Back
Manage Users and
Groups
Manage Security (Part 1)
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- Becom e t h e r oot u ser : s udo - i or s udo s u -
Configure Local Storage - Ru n com m an d as r oot u ser : s udo c ommand
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- Ch an ge ow n er sh ip: c hown us er : gr oup f i l e
Configure Local Storage - Ch an ge per m ission s (n u m er ic): c hmod 764 f i l e
- Ch an ge per m ission (sym bolic): c hmod u+r w f i l e
Create and Configure File - Special per m ission s: s et ui d (4 or u+s ), s et gi d (2 or
System s g+s ), s t i c k y bi t (1 or a+t )
Deploy, Configure, and
Maintain system s
Back
Manage Users and
Groups
Manage Security (Part 1)
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Un der st an d an d Use Essen t ial Tools
I n t r odu ct ion
Section 1
Un der st an dand
Understand an dUse
u se
Essen t ialTools
Essential Tools
Operate Running
System s
- m an pages: man c ommand or man s ec t i on c ommand
Configure Local Storage - in f o: i nf o c ommand
- / us r / s har e/ doc
Create and Configure File - apr opos: apr opos c ommand or man - k c ommand
System s
Un der st an d Cor e
Com pon en t s of An sible
Section 3
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Oper at e Ru n n in g Syst em s
Un der st an dand
Understand an dUse
u se I n t er r u pt Boot Pr ocess an d Ch an ge t h e r oot Passw or d
Essen t ialTools
Essential Tools
Oper at eRunning
Operate Ru n n in g 1. Edit the kernel boot param eters by pressing e
Syst ems s
System
2. Go t o the end of the ?linux? line by pressing Ct r l+e,
Configure Local Storage rem oving r o c r as h and add r d. br eak enf or c i ng=0
Create and Configure File 3. St ar t the system by pressing Ct r l+x
System s 4. Rem ou n t the root of the system :
Deploy, Configure, and mount - o r emount , r w / s ys r oot
Maintain system s
5. Sw it ch to / sy s r oot :
Manage Users and chr oot / s y sr oot
Groups
6. Reset the r oot password:
Manage Security (Part 1)
pas s wd
Un der st an d Cor e 7. En able SELinux relabeling:
Com pon en t s of An sible t ouc h / . aut or el abel
Section 3 8. Exit the shell:
ex i t
I n st all an d Con f igu r e
an An sible Con t r ol
Node
Section 4
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Oper at e Ru n n in g Syst em s
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Con f igu r e Local St or age
- df
Basic Red Hat Cer t if ied - l sbl k
Adm in ist r at or Sk ills
Section 2 - bl ki d
Un der st an dand
Understand an dUse
u se - f di sk - l
Essen t ialTools
Essential Tools
Oper at eRunning
Operate Ru n n in g
Syst ems s
System
Con f igu r eLocal
Configure Local St or age
Storage
Cr eat e a Par t it ion :
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Con f igu r e Local St or age
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Cr eat e an d Con f igu r e File Syst em s
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Cr eat e an d Con f igu r e File Syst em s
Un der st an d Cor e
Com pon en t s of An sible Wor k in g w it h Vir t u al Dat a Opt im izer (VDO)
Section 3
1. Install required packages: yum install vdo
2. Create a vdo volum e: vdo cr eat e
I n st all an d Con f igu r e
- - name=vdo_vol - - devi ce=/ dev/ devName
an An sible Con t r ol
Node - - vdoLogi cal Si ze=vol _si ze
Section 4 3. View inform ation on vdo volum es:
vdost at s - - hu
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Deploy, Con f igu r e, an d M ain t ain syst em s
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation Deploy, Con f igu r e, an d M ain t ain syst em s
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation M an age User s an d Gr ou ps
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation M an age User s an d Gr ou ps
Oper at eRunning
Operate Ru n n in g - Create a group: gr oupadd gr oupname
Syst ems s
System - Add user to a group: user mod - g - aG
Con f igu r eLocal
Local St or age
Configure Storage - Modify a group: gr oupmod - n - g
Cr eat eand
Create an dConfigure
Con f igu rFile
e File - Delete a group: gr oupdel gr oupname
Syst ems s
System
Deploy,Configure,
Deploy, Con f igu r e,
andan d
M ain t ainsystem
Maintain syst em
s s Con f igu r e Su per u ser Access
M an ageUsers
Manage User sand
an d
Gr ou ps - View the sudoer s file: vi / et c/ sudoer s
Groups
Manage Security (Part 1) - Edit the sudoer s file: vi sudo
- Grant a user sudo access by adding the following
Un der st an d Cor e
line to / et c/ sudoer s :
Com pon en t s of An sible
Section 3 user name ALL=( ALL) ALL
- Grant m em bers of a group sudo access by adding
I n st all an d Con f igu r e the following line to / et c/ sudoer s :
an An sible Con t r ol %gr oupname ALL=( ALL) ALL
Node
Section 4
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation M an age Secu r it y
Back Next
Back t o M ain
Basic Red Hat Certified Adm inistrator Skills
Course Navigation M an age Secu r it y
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation I n ven t or ies
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation I n ven t or ies
I n t r odu ct ion
Section 1 YAML-based inventory file:
Configuration Files
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation M odu les
I n t r odu ct ion
Un der st an din g M odu les
Section 1
Configuration Files
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation Var iables
I n ven t or ies
Inventories - They are typically used for configuration values
Modules
M odu les
and various param eters.
Variables
Var iables
- Variables can store the return value of executed
Facts
com m ands.
Plays and Playbooks
- Variables m ay also be dictionaries.
Configuration Files
- Ansible provides a num ber of predefined variables.
I n st all an d Con f igu r e
an An sible Con t r ol
Node
Section 4
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation Var iables
I n t r odu ct ion
Section 1
Exam ple of Host Level Variables:
Basic Red Hat Cer t if ied
Adm in ist r at or Sk ills I NI f or mat :
Section 2
[ webs er v er s ]
hos t 1 ht t p_por t =80 max Reques t s Per Chi l d=500
Un der st an d Cor e hos t 2 ht t p_por t =305 max Reques t s Per Chi l d=600
Com pon en t s of An sible
Section 3 YAML f or mat :
I n ven t or ies
Inventories webs er v er s :
hos t 1:
Modules
M odu les
ht t p_por t : 80
Variables
Var iables max Reques t s Per Chi l d: 500
Facts hos t 2:
ht t p_por t : 305
Plays and Playbooks max Reques t s Per Chi l d: 600
Configuration Files
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation Fact s
I n ven t or ies
Inventories [ c l oud_us er @ms pear s on4c ans i bl e] $ ans i bl e - i i nv . i ni
Modules ms pear s on2c - m s et up
M odu les
Variables
Var iables ms pear s on2c | SUCCESS => {
" ans i bl e_f ac t s " : {
Facts
Fact s " ans i bl e_al l _i pv 4_addr es s es " : [
Plays and Playbooks " 172. 31. 101. 166" ,
" 192. 168. 122. 1"
Configuration Files ],
" ans i bl e_al l _i pv 6_addr es s es " : [
I n st all an d Con f igu r e " 2600: 1f 18: 502: 2f 01: a37b: b7b5: 61a6: 3659" ,
an An sible Con t r ol " f e80: : 835: c 7f f : f e1d: f 35e"
Node ],
Section 4 " ans i bl e_appar mor " : {
" s t at us " : " di s abl ed"
},
" ans i bl e_ar c hi t ec t ur e" : " x 86_64" ,
Con f igu r e An sible
" ans i bl e_bi os _dat e" : " 10/ 16/ 2017" ,
M an aged Nodes " ans i bl e_bi os _v er s i on" : " 1. 0" ,
Section 5 " ans i bl e_c mdl i ne" : {
" BOOT_I MAGE" :
" ( hd0, ms dos 2) / boot / v ml i nuz - 4. 18. 0- 80. 7. 2. el 8_0. x 86_64" ,
" c ons ol e" : " t t y 0" ,
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation Plays an d Playbook s
Back Next
Back t o M ain
Understand Core Com ponents of Ansible
Course Navigation Con f igu r at ion Files
I n t r odu ct ion
Th e An sible Con f igu r at ion File
Section 1
Back Next
Back t o M ain
Install and Configure an Ansible Control Node
Course Navigation I n st all Requ ir ed Pack ages
I n t r odu ct ion
I n st all An sible Usin g YUM
Section 1
Back Next
Back t o M ain
Install and Configure an Ansible Control Node
Course Navigation Cr eat e a St at ic Host I n ven t or y File
Un der st an d Cor e
Com pon en t s of An sible - Inventory files m ay contain hosts, patterns,
Section 3 groups and variables.
- Multiple inventory files m ay be specified
I n st all an d Con f igu r e using a directory.
an An sible Con t r ol - Inventory files m ay be specified in INI or
Node
Section 4
YAML form at.
I n st allRequired
Install Requ ir edPackages
Pack ages
Inventory Locations:
Create
Cr eat eaaStatic
St at icHost
Host
Inventory
I n ven t or yFile
File
Default:
Create a Configuration / et c / ans i bl e/ hos t s
File
Speci?ed by CLI:
Con f igu r e An sible ans i bl e - i <f i l ename>
M an aged Nodes
Section 5 Can be set in:
ans i bl e. c f g
Back Next
Back t o M ain
Install and Configure an Ansible Control Node
Course Navigation Cr eat e a St at ic Host I n ven t or y File
Un der st an d Cor e
Com pon en t s of An sible mai l . ex ampl e. c om ans i bl e_por t =5556
Section 3 ans i bl e_hos t =192. 168. 0. 20
[ webs er v er s ]
I n st all an d Con f igu r e web01. ex ampl e. c om
web02. ex ampl e. c om
an An sible Con t r ol
Node [ webs er v er s : v ar s ]
Section 4
ht t p_por t =8080
I n st allRequired
Install Requ ir edPackages
Pack ages
[ dbs er v er s ]
Create
Cr eat eaaStatic
St at icHost
Host db[ 01: 99] . ex ampl e. c om
Inventory
I n ven t or yFile
File
Create a Configuration I n ven t or y Var iables Best Pr act ices
File
1. Variables should be stored in YAML files located relative to
Con f igu r e An sible the inventory file.
M an aged Nodes
2. Host and group variables should be stored in the
Section 5
hos t _v ar s and gr oup_var s directories respectively
(directories m ust be created).
Scr ipt Adm in ist r at ion
Task s
3. Variable files should be nam ed after the host or group for
Section 6 which they contain variables (files m ay end in . yml or
. yaml ).
Back Next
Back t o M ain
Install and Configure an Ansible Control Node
Course Navigation Cr eat e a St at ic Host I n ven t or y File
Un der st an d Cor e
Com pon en t s of An sible ---
Section 3 al l :
hos t s :
mai l . ex ampl e. c om
ans i bl e_por t : 5556
I n st all an d Con f igu r e
ans i bl e_por t : 192. 168. 0. 20
an An sible Con t r ol c hi l dr en:
Node webs er v er s :
Section 4 hos t s :
web01. ex ampl e. c om
I n st allRequired
Install Requ ir edPackages
Pack ages web02. ex ampl e. c om
v ar s :
Create
Cr eat eaaStatic
St at icHost
Host
Inventory ht t p_por t : 8080
I n ven t or yFile
File
dbs er v er s :
Create a Configuration hos t s :
File db[ 01: 99] . ex ampl e. c om
Back Next
Back t o M ain
Install and Configure an Ansible Control Node
Course Navigation Cr eat e a St at ic Host I n ven t or y File
I n t r odu ct ion D Gr ou ps of
Section 1
Gr ou ps
[ wes t ]
hos t 3
I n st all an d Con f igu r e hos t 4
an An sible Con t r ol
Node [ us a: c hi l dr en]
Section 4 eas t
wes t
I n st allRequired
Install Requ ir edPackages
Pack ages
Create
Cr eat eaaStatic
St at icHost
Host
Inventory
I n ven t or yFile
File YAML-based inventory file:
Create a Configuration
File al l :
c hi l dr en:
us a:
Con f igu r e An sible
c hi l dr en:
M an aged Nodes eas t :
Section 5 hos t s :
hos t 1:
hos t 2:
Scr ipt Adm in ist r at ion wes t :
Task s hos t s :
Section 6 hos t 3:
hos t 4:
Back Next
Back t o M ain
Install and Configure an Ansible Control Node
Course Navigation Cr eat e a Con f igu r at ion File
I n t r odu ct ion
Section 1 Def au lt ansi bl e. cf g
Back Next
Back t o M ain
Configure Ansible Managed Nodes
Cr eat e an d Dist r ibu t e SSH Keys t o M an age Nodes an d Con f igu r e
Course Navigation Pr ivilege Escalat ion
Basic Red Hat Cer t if ied
Adm in ist r at or Sk ills
Section 2
Un der st an d Cor e
Com pon en t s of An sible
Section 3 1 2
I n st all an d Con f igu r e Gen er at e SSH Keys ... Dist r ibu t e SSH Keys
an An sible Con t r ol
Node
Section 4 # s s h- k ey gen # s s h- c opy - i d
...
M an aged Nodes
Section 5
Cr eat eand
Create an dDistribute
Dist r ibu t e
SSH 4 3
SSH Keys
Keys t o M anNodes
to Manage age
and
NodesConfigure
an d ConPrivilege
f igu r e
Escalation
Pr ivilege Escalat ion Con t r ol Node ... Escalat e Pr ivileges
Validate a Working
Configuration Using Ad M an aged Node 1
Hoc Ansible Com m ands # v i s udo
us er _name ALL=( ALL) NOPASSWD: ALL
Back Next
Back t o M ain
Configure Ansible Managed Nodes
Validat e a Wor k in g Con f igu r at ion Usin g Ad Hoc An sible Com m an ds
Course Navigation
Back Next
Back t o M ain
Configure Ansible Managed Nodes
Validat e a Wor k in g Con f igu r at ion Usin g Ad Hoc An sible Com m an ds
Course Navigation
Cr eat eand
Create an dDistribute
Dist r ibu t e
SSH
SSH Keys
Keys t o M anNodes
to Manage age
and
NodesConfigure
an d ConPrivilege
f igu r e
Escalation
Pr ivilege Escalat ion
Validate
Validat eaaWorking
Wor k in g
Configuration
Con f igu r at ionUsing
Usin gAdAd
Hoc
Hoc Ansible
An sibleCom Commmands
an ds
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Cr eat e Sim ple Sh ell Scr ipt s
Basic Red Hat Cer t if ied
Adm in ist r at or Sk ills Sh ell Scr ipt s
Section 2
- The first line m ust include #! / bi n/ bash.
Un der st an d Cor e - Com m ents can be added by using the # sym bol.
Com pon en t s of An sible - Execute perm ission needs to be added to the script.
Section 3
- Execute the script using the absolute path or
. / scr i pt . sh (if the script is in your current
I n st all an d Con f igu r e
an An sible Con t r ol directory).
Node
Section 4 Sim ple echo Script:
Cr eat eSim
Create Simple
pleShell
Sh ell
Scr ipt s
Scripts #! / bi n/ bas h
Create Shell Scripts That
Run Ad Hoc Ansible f or i i n { 1. . 5}
Com m ands do
ec ho " Hel l o $i t i mes ! "
Cr eat e An sible Plays done
an d Playbook s
Section 7
Back t o M ain
Script Adm inistration Tasks
Course Navigation Cr eat e Sim ple Sh ell Scr ipt s
Basic Red Hat Cer t if ied
Adm in ist r at or Sk ills
Section 2 A case Statem ent
Un der st an d Cor e
Com pon en t s of An sible #! / bi n/ bas h
Section 3
ec ho - n " Ent er t he name of a s t at e: "
r ead STATE
I n st all an d Con f igu r e
an An sible Con t r ol
ec ho - n " The c api t al c i t y of $STATE i s "
Node
Section 4 c as e $STATE i n
Geor gi a)
ec ho " At l ant a"
Con f igu r e An sible ;;
M an aged Nodes Vi r gi ni a)
Section 5 ec ho " Ri c hmond"
;;
Tex as )
Scr ipt Adm in ist r at ion ec ho " Aus t i n"
Task s ;;
Section 6 Mai ne)
ec ho " Augus t a"
Cr eat eSim
Create Simple
pleShell
Sh ell ;;
Scr ipt s
Scripts *)
ec ho " not i n t he dat abas e"
Create Shell Scripts That ;;
Run Ad Hoc Ansible es ac
Com m ands
Back t o M ain
Script Adm inistration Tasks
Course Navigation Cr eat e Sh ell Scr ipt s Th at Ru n Ad Hoc An sible Com m an ds
Basic Red Hat Cer t if ied
Adm in ist r at or Sk ills
Section 2 Shell Script with Ad Hoc Ansible Com m ands
Un der st an d Cor e
#! / bi n/ bas h
Com pon en t s of An sible
Section 3
# Cr eat e t he us er mat t
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Kn ow How t o Wor k w it h Com m on ly Used An sible M odu les
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Kn ow How t o Wor k w it h Com m on ly Used An sible M odu les
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Use Var iables t o Ret r ieve t h e Resu lt s of Ru n n in g a Com m an d
Create Playbooks to
Configure System s to a
Specified State
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Use Con dit ion als t o Con t r ol Play Execu t ion
Kn ow How
Know Howtot oWork
Wor kwith
w it h
Comm
Com monly
on lyUsed
UsedAnsible
An sible
M odu les
Modules
Use Variables
Use Var iablestot oRetrieve
Ret r ieve
t h e Results
the Resu lt sofofRunning
Ru n n in ga a
Comm
Com mand
an d
Use Conditionals
Use Con dit ion alstot o
Con t r olPlay
Control PlayExecution
Execu t ion
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Use Con dit ion als t o Con t r ol Play Execu t ion
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Use Con dit ion als t o Con t r ol Play Execu t ion
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Use Con dit ion als t o Con t r ol Play Execu t ion
Create Playbooks to
Configure System s to a
Specified State
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Con f igu r e Er r or Han dlin g
Create Playbooks to
Configure System s to a
Specified State
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Con f igu r e Er r or Han dlin g
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Cr eat e Playbook s t o Con f igu r e Syst em s t o a Specif ied St at e
Back t o M ain
Create Ansible Plays and Playbooks
Course Navigation Cr eat e Playbook s t o Con f igu r e Syst em s t o a Specif ied St at e
Create
Cr eat ePlaybooks
Playbook stot o
Configure
Con f igu r eSystem
Syst ems stot oa a
Specified
Specif iedState
St at e
Back t o M ain
Script Adm inistration Tasks
Course Navigation Sof t w ar e Pack ages an d Reposit or ies
Scr ipt Adm in ist r at ion
Task s Th e yumM odu le - Use the yumpackage m anager to
Section 6
install, upgrade, downgrade, rem ove, and list packages
and groups.
Cr eat e An sible Plays
an d Playbook s
Section 7 Exam ples of the yum m odule:
Archiving - name: I ns t al l r pm f r om a l oc al f i l e
Scheduled Tasks y um:
name: / pat h/ t o/ f i l e. r pm
Security s t at e: pr es ent
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Sof t w ar e Pack ages an d Reposit or ies
Scr ipt Adm in ist r at ion
Task s Th e yu m _r eposit or y m odu le - Add or rem ove a yum
Section 6
repository.
File System s
Archiving
Scheduled Tasks
Security
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Ser vices
Scr ipt Adm in ist r at ion
Task s Th e ser vice m odu le - This controls services on a rem ote
Section 6
host. The supported init system s are BSD init, OpenRC,
SysV, Solaris SMF, system d, and upstart.
Cr eat e An sible Plays
an d Playbook s
Section 7 Exam ple of the ser vi ce m odule:
Firewall Rules
Th e syst emd m odu le - This controls syst emd services
Storage Devices
on a rem ote host.
File Content
Archiving
- name: Show opt i ons f or s y s t emd modul e
Scheduled Tasks s er v i c e:
name: s er v i c e_name
Security
s t at e:
Users and Groups s t ar t ed| s t opped| r es t ar t ed| r el oaded
enabl ed: y es | no
daemon_r el oad: y es | no
Cr eat e an d Use
f or c e: y es | no
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Fir ew all Ru les
Scr ipt Adm in ist r at ion
Task s Th e f i r ewal l d m odu le - Allows for the addition or
Section 6
deletion of running or perm anent firewall rules by
services or ports (TCP or UDP)
Cr eat e An sible Plays
an d Playbook s
Section 7
Exam ple of the f i r ewal l d m odule:
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation St or age Devices
Scr ipt Adm in ist r at ion
Task s Cr eat e Par t it ion s
Section 6
File Content
File System s
Archiving
Scheduled Tasks
Security
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation St or age Devices
Scr ipt Adm in ist r at ion
Task s Cr eat e Logical Volu m es
Section 6
Th e l vg m odu le - Create, rem ove, and resize volum e
groups
Cr eat e An sible Plays
an d Playbook s
Section 7 Exam ple of the lvg m odule:
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation File Con t en t
Scr ipt Adm in ist r at ion
Task s M an age File Con t en t
Section 6
Th e f i l e m odu le - Manage files and file properties.
File System s
Archiving
Th e l i nei nf i l e m odu le - Manage lines in text files.
Scheduled Tasks
Exam ple of the l i nei nf i l e m odule:
Security
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation File Con t en t
Scr ipt Adm in ist r at ion
Task s Cr eat e Files an d an d Replace St r in gs (con t .)
Section 6
Th e r epl ace m odu le - Replace all in st an ces of a
par t icu lar st r in g w it h in a f ile.
Cr eat e An sible Plays
an d Playbook s
Section 7 Exam ple of the r epl ace m odule:
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation File Con t en t
Scr ipt Adm in ist r at ion
Task s Cr eat e Files an d an d Replace St r in gs (con t .)
Section 6
Exam ple of a tem plate file:
Cr eat e An sible Plays
an d Playbook s Hos t name = { { ans i bl e_hos t name } }
Section 7 Oper at i ng Sy s t em = { { ans i bl e_di s t r i but i on } } { {
ans i bl e_di s t r i but i on_v er s i on } }
I PV4 Addr es s = { { ans i bl e_def aul t _i pv 4. addr es s } }
Use An sible M odu les I PV6 Addr es s = { { ans i bl e_def aul t _i pv 6. addr es s } }
f or Syst em I nt er f ac es = { { ans i bl e_i nt er f ac es | j oi n( ' , ' ) } }
Adm in ist r at ion Task s Bl oc k Dev i c es = { { ans i bl e_dev i c es | j oi n( ' , ' ) } }
Section 8
Sof t w ar e Packages
Software Pack agesand
an d
Reposit or ies
Repositories
Ser vices
Services
Fir ew all Rules
Firewall Ru les
Storage
St Devices
or age Devices
File Con
File Content
t en t
File System s
Archiving
Scheduled Tasks
Security
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation File Syst em s
Scr ipt Adm in ist r at ion
Task s Cr eat e a Filesyst em
Section 6
Th e f i l esyst emm odu le - Create a filesystem .
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Ar ch ivin g
Scr ipt Adm in ist r at ion
Task s Cr eat e an Ar ch ive
Section 6
Scheduled Tasks
Security
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Ar ch ivin g
Scr ipt Adm in ist r at ion
Task s Un pack an Ar ch ive
Section 6
Cr eat e An sible Plays Th e unar chi ve m odu le - Copy (optional) and unpack an
an d Playbook s archive.
Section 7
Use An sible M odu les Exam ple of the unar chi ve m odule:
f or Syst em
Adm in ist r at ion Task s
Section 8 - name: s how opt i ons f or unar c hi v e modul e
unar c hi v e:
Sof t w ar e Packages
Software Pack agesand
an d sr c:
Reposit or ies
Repositories / pat h/ t o/ f i l e. z i p| www. webs i t e. c om/ pat h/ t o/ f i l e. z i p
des t : / pat h/ t o/ unpac k / i n
Ser vices
Services r emot e_s r c : no| y es
Fir ew all Rules
Firewall Ru les
Storage
St Devices
or age Devices
File Con
File Content
t en t
File Syst
File System
emss
Archiving
Ar ch ivin g
Scheduled Tasks
Security
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Sch edu led Task s
Scr ipt Adm in ist r at ion
Task s Sch edu le Task s u sin g c r on an d at
Section 6
Archiving
Ar ch ivin g
Scheduled
Sch edu led Tasks
Task s
Security
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Sch edu led Task s
Scr ipt Adm in ist r at ion
Task s Sch edu le Task s u sin g c r on an d at (con t .)
Section 6
Storage
St Devices
or age Devices
File Con
File Content
t en t
File Syst
File System
emss
Archiving
Ar ch ivin g
Scheduled
Sch edu led Tasks
Task s
Security
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Secu r it y
Scr ipt Adm in ist r at ion
Task s Th e sel i nux m odu le - Change the policy and state of
Section 6
SELinux.
Sof t w ar e Packages
Software Pack agesand
an d
Reposit or ies
Repositories
Ser vices
Services Th e sebool ean m odu le - Toggle SELinux booleans.
Fir ew all Rules
Firewall Ru les
Storage
St Devices
or age Devices Exam ple of the sebool ean m odule:
File Con
File Content
t en t
- name: s how opt i ons f or s ebool ean modul e
File Syst
File System
emss s ebool ean:
name: bool ean_name
Archiving
Ar ch ivin g s t at e: no| y es
Scheduled per s i s t ent : no| y es
Sch edu led Tasks
Task s
Security
Secu r it y
Users and Groups
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation Secu r it y
Scr ipt Adm in ist r at ion
Task s Th e sef cont ext m odu le - Manage SELinux file context
Section 6
m appings definitions.
Storage
St Devices
or age Devices
File Con
File Content
t en t
File Syst
File System
emss
Archiving
Ar ch ivin g
Scheduled
Sch edu led Tasks
Task s
Security
Secu r it y
Users and Groups
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Script Adm inistration Tasks
Course Navigation User s an d Gr ou ps
Scr ipt Adm in ist r at ion
Task s M an age User s
Section 6
Th e user m odu le - Manage user accounts and user
attributes.
Cr eat e An sible Plays
an d Playbook s
Section 7
Exam ple of the user m odule:
Storage
St Devices
or age Devices
M an age Gr ou ps
File Con
File Content
t en t
Th e gr oup m odu le - Add or rem ove groups.
File Syst
File System
emss
Archiving
Ar ch ivin g
Exam ple of the gr oup m odule:
Scheduled
Sch edu led Tasks
Task s
Security
Secu r it y - name: s how opt i ons f or t he gr oup modul e
gr oup:
Users
User and
s an Groups
d Gr ou ps name: gr oup_name
gi d: s et t he gi d f or t he gr oup
Cr eat e an d Use s y s t em: no| y es
Tem plat es t o Cr eat e s t at e: pr es ent | abs ent
Cu st om ized
Con f igu r at ion Files
Section 9
Back Next
Back t o M ain
Create and Use Tem plates to Create Custom ized
Configuration Files
Course Navigation An sible Var iables
Cr eat e an d Use
- Variables m ay be defined or set in the following
Tem plat es t o Cr eat e locations:
Cu st om ized - Inventories (also in hos t _var s and
Con f igu r at ion Files
Section 9 gr oup_var s directories)
- Playbooks (i.e., v ar s , var s_f i l es , and
An sible Var
Ansible iables
Variables
v ar s _pr ompt )
Ansible Tem plates
- Roles (i.e., set in
Cr eat e an d Wor k r ol es / r ol e_name/ v ar s/ mai n. y ml )
w it h Roles - The com m and line (i.e., - e or - - ex t r a- v ar s )
Section 10
Back t o M ain
Create and Use Tem plates to Create Custom ized
Configuration Files
Course Navigation An sible Var iables
Back t o M ain
Create and Use Tem plates to Create Custom ized
Configuration Files
Course Navigation An sible Tem plat es
Back t o M ain
Create and Use Tem plates to Create Custom ized
Configuration Files
Course Navigation An sible Tem plat es
An sible Var
Ansible iables
Variables
Ansible
An sible Tem plates
plat es
Cr eat e an d Wor k
w it h Roles
Section 10
Back t o M ain
Create and Use Tem plates to Create Custom ized
Configuration Files
Course Navigation An sible Tem plat es
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
An sible Var
Ansible iables
Variables
Ansible
An sible Tem plates
plat es
Cr eat e an d Wor k
w it h Roles
Section 10
Back t o M ain
Create and Use Tem plates to Create Custom ized
Configuration Files
Course Navigation An sible Tem plat es
W
- el
- - c ome t o { { ans i bl e_hos t name } } !
Scr ipt Adm in ist r at ion - hos t s : webs er v er s
Task s - The
bec iompve:4 addr
y es es s i s { { ans i bl e_def aul t _i pv 4[ ' addr es s ' ] } }
Section 6 v ar s :
- The c cont
ur rent
ent_dimem r : or/ ywebcus ageont enti s {{
ans i blht e_m emort y: _m
t p_por b[ ' r eal ' ] [ ' us ed' ] } } mb out of { {
8080
Cr eat e An sible Plays ans i bladme_m
i n:emorc l youd_us
_mb[ ' rereal ' ] [ ' t ot al ' ] } } mb
an d Playbook s t as k s :
Section 7 - The - { {nam ans
e: i bl
pus e_dev
h c onf i c es i g| t fem
i rpls tat }e} bl oc k dev i c e has t he
f ol l owit ng
emplpar at te:i t i ons :
- { { ans is blr c e_dev
: / hom i ce/esc [l 'oud_us
nv me0n1' er / ]ans
[ ' par
i bl te/i t iem
ons
pl 'at] |es
j oi
/ htn(t 'pd.
\ n c -onf
' ) . }j }2
Use An sible M odu les des t : / et c / ht t pd/ c onf / ht t pd. c onf
bac k up: y es
f or Syst em
not i f y : " r es t ar t apac he"
Adm in ist r at ion Task s - name: pus h i ndex . ht ml t empl at e
Section 8
t empl at e:
s r c : / home/ c l oud_us er / ans i bl e/ t empl at es / i ndex . ht ml . j 2
des t : / webc ont ent / i ndex . ht ml
Cr eat e an d Use handl er s :
Tem plat es t o Cr eat e - name: r es t ar t web s er v er s
Cu st om ized s er v i c e:
Con f igu r at ion Files name: ht t pd
Section 9 s t at e: r es t ar t ed
l i s t en: " r es t ar t apac he"
An sible Var
Ansible iables
Variables
Ansible
An sible Tem plates
plat es
Cr eat e an d Wor k
w it h Roles
Section 10
Back t o M ain
Create and Work with Roles
Course Navigation Un der st an din g Roles
Back t o M ain
Create and Work with Roles
Course Navigation Un der st an din g Roles
Ansible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation Un der st an din g Roles
Cr eat e an d Wor k
w it h Roles
Section 10
Ansible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation Un der st an din g Roles
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Cr eat e an d Wor k
w it h Roles
Section 10
Ansible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation Un der st an din g Roles
- host s: t ar get s
Scr ipt Adm in ist r at ion var s:
Task s t i mesync_nt p_ser ver s:
Section 6 - host name: f oo. exampl e. com
i bur st : yes
- host name: bar . exampl e. com
Cr eat e An sible Plays i bur st : yes
an d Playbook s - host name: baz. exampl e. com
Section 7
i bur st : yes
r ol es:
Use An sible M odu les - r hel - syst em- r ol es. t i mesync
f or Syst em
Adm in ist r at ion Task s
Section 8
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Cr eat e an d Wor k
w it h Roles
Section 10
Ansible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation Cr eat in g an d Usin g Roles
Back t o M ain
Create and Work with Roles
Course Navigation Cr eat in g an d Usin g Roles
---
Scr ipt Adm in ist r at ion # def aul t s f i l e f or apac he
Task s apac he_c ont ent _di r : / webc ont ent
Section 6 apac he_ht t p_por t : 8080
apac he_admi n: c l oud_us er
Cr eat e an d Wor k
w it h Roles
Section 10
Creating
Cr eat in g and
an d Using
Usin g Roles
Roles
Ansible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation Cr eat in g an d Usin g Roles
Us er apac he
Use An sible M odu les
Gr oup apac he
f or Syst em
Adm in ist r at ion Task s Ser v er Admi n { { apac he_admi n } } @{ { ans i bl e_hos t name
Section 8 }}
<Di r ec t or y / >
Cr eat e an d Use Al l owOv er r i de none
Tem plat es t o Cr eat e Requi r e al l deni ed
Cu st om ized </ Di r ec t or y >
Con f igu r at ion Files
Section 9 Doc ument Root " { { apac he_c ont ent _di r } } "
?
Cr eat e an d Wor k
w it h Roles
Section 10
Creating
Cr eat in g and
an d Using
Usin g Roles
Roles
Ansible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation Cr eat in g an d Usin g Roles
---
Scr ipt Adm in ist r at ion # handl er s f i l e f or apac he
Task s - name: r es t ar t web s er v er s
Section 6 s er v i c e:
name: ht t pd
s t at e: r es t ar t ed
Cr eat e An sible Plays l i s t en: " r es t ar t apac he"
an d Playbook s
Section 7
Creating
Cr eat in g and
an d Using
Usin g Roles
Roles
Ansible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation An sible Galaxy
Cr eat e an d Wor k
w it h Roles
Section 10
Creating
Cr eat in g and
an d Using
Usin g Roles
Roles
Ansible
An Galaxy
sible Galaxy
Back t o M ain
Create and Work with Roles
Course Navigation An sible Galaxy
Cr eat e an d Use
Tem plat es t o Cr eat e
List installed roles:
Cu st om ized ansi bl e- gal axy l i st
Con f igu r at ion Files
Section 9
Print inform ation about installed roles:
ansi bl e- gal axy i nf o r ol e_name
Cr eat e an d Wor k
w it h Roles
Section 10 Rem ove a role:
Un der st an din g Roles
Roles
ansi bl e- gal axy r emove r ol e_name
Understanding
Creating
Cr eat in g and
an d Using
Usin g Roles
Roles
Ansible
An Galaxy
sible Galaxy
Back t o M ain
Managing Parallelism
Course Navigation Par allelism w it h An sible
Back t o M ain
Managing Parallelism
Course Navigation Par allelism w it h An sible
---
Cr eat e An sible Plays - host s: l abser ver s
an d Playbook s ser i al :
Section 7
- 1
- 2
Use An sible M odu les - 50%
f or Syst em t asks:
Adm in ist r at ion Task s - name: cr eat e new f i l e
Section 8 f i l e:
pat h: / t mp/ ser i al Fi l e
st at e: t ouch
Cr eat e an d Use
Tem plat es t o Cr eat e
Cu st om ized
Con f igu r at ion Files
Section 9
Cr eat e an d Wor k
w it h Roles
Section 10
Back t o M ain
Archiving
Course Navigation An sible Vau lt
An sible Vau
Ansible Vaultlt
An sible
Docu m en t at ion
Section 13
Back Next
Back t o M ain
Archiving
Course Navigation An sible Vau lt
An sible Vau
Ansible Vaultlt
An sible
Docu m en t at ion
Section 13
Back Next
Back t o M ain
Archiving
Course Navigation An sible Vau lt
M an agin g Par allelism - Use m ultiple passwords with vault ID: ansi bl e- pl aybook
Section 11 - - vaul t - i d l abel 1@passwor d_f i l e - - vaul t - i d
l abel 2@pr ompt pl aybook. yml
An sible Vau
Ansible Vaultlt
An sible
Docu m en t at ion
Section 13
Back Next
Back t o M ain
Archiving
Course Navigation Usin g An sible Vau lt in a Playbook
Usin
Usingg An sible Vault
Ansible Vau ltininaa Decrypt an encrypted file:
Playbook
Playbook
ans i bl e- v aul t dec r y pt f i l e. yml
An sible
Docu m en t at ion
Section 13
Back Next
Back t o M ain
Ansible Docum entation
Course Navigation Local Docu m en t at ion
Cr eat e an d Use
Tem plat es t o Cr eat e Th e ans i bl e- doc Com m an d - Docu m en t at ion Tool
Cu st om ized f or Plu gin s an d M odu les
Con f igu r at ion Files
Section 9
Com m and syntax:
ansi bl e- doc [ - l | - F| - s] [ opt i ons] [ - t
Cr eat e an d Wor k
w it h Roles <pl ugi n t ype> ] [ pl ugi n]
Section 10
List m odules:
M an agin g Par allelism ansi bl e- doc - l
Section 11
An sible
Docu m en t at ion
Section 13
Local
Local Docu
Documm entation
en t at ion
Back Next
Back t o M ain
Ansible Docum entation
Course Navigation Local Docu m en t at ion
Cr eat e an d Use
Tem plat es t o Cr eat e Exam ple ansi bl e- doc Com m an d Ou t pu t :
Cu st om ized
Con f igu r at ion Files
# ans i bl e- doc s er v i c e
Section 9
...
Cont r ol s s er v i c es on r emot e hos t s . Suppor t ed
i ni t s y s t ems i nc l ude BSD i ni t , OpenRC, Sy s V, Sol ar i s
Cr eat e an d Wor k
SMF, s y s t emd, ups t ar t . For Wi ndows t ar get s , us e t he
w it h Roles [ wi n_s er v i c e] modul e i ns t ead.
Section 10
* Thi s modul e i s mai nt ai ned by The Ans i bl e Cor e Team
* not e: Thi s modul e has a c or r es pondi ng ac t i on
M an agin g Par allelism pl ugi n.
Section 11
OPTI ONS ( = i s mandat or y ) :
- ar gument s
Addi t i onal ar gument s pr ov i ded on t he c ommand
Pr ot ect Sen sit ive Dat a l i ne.
in Playbook s w it h ( Al i as es : ar gs ) [ Def aul t : ( nul l ) ]
An sible Vau lt t y pe: s t r
Section 12 - enabl ed
Whet her t he s er v i c e s houl d s t ar t on boot .
* At l eas t one of s t at e and enabl ed ar e
An sible r equi r ed. *
[ Def aul t : ( nul l ) ]
Docu m en t at ion
t y pe: bool
Section 13
= name
Local Name of t he s er v i c e.
Local Docu
Documm entation
en t at ion
t y pe: s t r
Docum entation on the
Web EXAMPLES:
- name: St ar t s er v i c e ht t pd, i f not s t ar t ed
s er v i c e:
Con clu sion name: ht t pd
Section 14 s t at e: s t ar t ed
...
Back Next
Back t o M ain
Ansible Docum entation
Course Navigation Docu m en t at ion on t h e Web
Cr eat e an d Use
Tem plat es t o Cr eat e An sible Docu m en at ion :
Cu st om ized h t t ps:/ / docs.an sible.com /
Con f igu r at ion Files
Section 9
An sible Galaxy Docu m en t at ion :
Cr eat e an d Wor k
h t t ps:/ / galaxy.an sible.com / docs/
w it h Roles
Section 10
Points of interest:
- Ansible Docum entation
M an agin g Par allelism
Section 11 - Installation| Installation Guide
- User Guide
- Playbooks| Working With Playbooks
Pr ot ect Sen sit ive Dat a
in Playbook s w it h
- Module Index
An sible Vau lt - Ansible Galaxy| Galaxy Docum entation
Section 12
An sible
Docu m en t at ion
Section 13
Local
Local Docu
Documm entation
en t at ion
Docu
Documm en t at ion on
entation on the
t he
Web
Web
Back Next
Back t o M ain
Conclusion
Course Navigation Con clu sion
Cr eat e an d Use
Tem plat es t o Cr eat e Recom m en dat ion s f or You r Next Cou r se
Cu st om ized
Con f igu r at ion Files - Red Hat Certified Architect
Section 9 - Red Hat Certified Specialist in Virtualization (ex318)
- Red Hat Certified Specialist in Ansible Autom ation
Cr eat e an d Wor k (ex407)
w it h Roles - Red Hat Certified Specialist in OpenShift
Section 10
Adm inistration (ex280)
- Red Hat Certified Specialist in Server Hardening
M an agin g Par allelism (ex413)
Section 11 - Red Hat Certified Specialist in Security (ex415)
- Red Hat Certified Specialist in Linux Diagnostics
and Troubleshooting (ex342)
Pr ot ect Sen sit ive Dat a
- Cloud platform s
in Playbook s w it h
An sible Vau lt - AWS
Section 12 - Azure
- Google Cloud
An sible - DevOps
Docu m en t at ion - Chef
Section 13
- Puppet
- Saltstack
Con clu sion - Kubernetes
Section 14 - Big Data
- Elastic
Con clu sion
Conclusion - Splunk
- Hadoop
Back Next
Back t o M ain
Exam Preparation
Course Navigation
- Make sure you have com pleted all the lessons and
Basic Red Hat Cer t if ied hands-on labs.
Adm in ist r at or Sk ills - Make use of the instructor-provided flash cards and
Section 2 create your own.
- Use the interactive diagram as a study guide reference.
Un der st an d Cor e - Go back over any topic m ultiple tim es to help with
Com pon en t s of An sible retention (labs and lessons).
Section 3
- Reach out to the Linux Academ y com m unity for any
additional questions.
I n st all an d Con f igu r e - Join a study group.
an An sible Con t r ol
- Be sure to get som e good sleep the night before the
Node
Section 4 exam .
- Eat a m odest m eal before taking the exam and be sure
Con f igu r e An sible
that you are reasonably hydrated.
M an aged Nodes - Arrive at the testing center with plenty of tim e before
Section 5 the exam starts.
Sign in g u p f or t h e Exam
Scr ipt Adm in ist r at ion
Task s
Section 6 - Visit the website for the exam :
https://www.redhat.com /en/services/training/ex294-red-hat-
certified-engineer- rhce-exam -red-hat-enterprise-linux-8
Cr eat e An sible Plays - Register for your desired form at: classroom or
an d Playbook s
individual.
Section 7
- Follow the em ail instructions from Red Hat to schedule
the location and tim e of your exam (for individuals).
Use An sible M odu les
f or Syst em
Adm in ist r at ion Task s
Section 8
Back t o M ain