100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

RHCE Exam Study Guide with Complete Solutions

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
28-08-2024
Written in
2024/2025

RHCE Exam Study Guide with Complete Solutions Ansible configuration groups - Answer️️ -[defaults], [privilege_escalation] Various configurations for privilege escalation in - Answer️️ - become, become_method, become_user, become_ask_pass Syntax for running an ansible ad hoc command - Answer️️ -ansible host- pattern -m module -a ansible-arguments Command for getting info on a module - Answer️️ -ansible-doc <module> ansible-doc -l (lists all modules) VIM formatting for Ansible - Answer️️ -autocmd FileType yaml setlocal ai ts=2 sw=2 et Basic/common keywords at the top of a play - Answer️️ -name: hosts: tasks: How to syntax check a playbook - Answer️️ -ansible-playbook --syntax- check How to dry run a playbook - Answer️️ -ansible-playbook -C ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 2 Keywords for controlling ansible user, as well as escalating privilege - Answer️️ -remote_user: user become: yes/no become: true/false become_method: sudo Sample output for a module - Answer️️ -ansible-doc -s module_name Defining variables - Answer️️ -vars: name1: value1 name2: value2 vars_files: - vars/ Using (referencing) a variable in a playbook - Answer️️ -{{ var_name }} (use quotes if starting a value) Defining group variables and host variables - Answer️️ - group_vars/group_name, host_vars/host_name name:value (group_name and host_name can be a file or a directory) ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 3 Overriding variables - Answer️️ -ansible-playbook -e "name=value" Referencing arrays - Answer️️ -_name users['bjones']['first_name'] How to save the output from a module to a variable - Answer️️ -register: var_name How to output/display variable - Answer️️ -- debug: var=var_name Creating encrypted ansible file - Answer️️ -ansible-vault create ansible-vault create --vault-password-file=vault-pass (use vault ID's if creating multiple vault passwords in a playbook) Viewing encrypted ansible file - Answer️️ -ansible-vault view Encrypt existing file - Answer️️ -ansible-vault encrypt Run playbook with encrypted files - Answer️️ -ansible-playbook --vault- id @prompt ansible-playbook --vault-password-file=vault-pw-file Important Ansible facts - Answer️️ -ansible_facts['ho

Show more Read less
Institution
RHCE
Course
RHCE









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
RHCE
Course
RHCE

Document information

Uploaded on
August 28, 2024
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM

RHCE Exam Study Guide with Complete Solutions

Ansible configuration groups - Answer✔️✔️-[defaults],
[privilege_escalation]

Various configurations for privilege escalation in ansible.cfg - Answer✔️✔️-
become, become_method, become_user, become_ask_pass

Syntax for running an ansible ad hoc command - Answer✔️✔️-ansible host-
pattern -m module -a ansible-arguments

Command for getting info on a module - Answer✔️✔️-ansible-doc
<module>

ansible-doc -l (lists all modules)

VIM formatting for Ansible - Answer✔️✔️-autocmd FileType yaml setlocal
ai ts=2 sw=2 et

Basic/common keywords at the top of a play - Answer✔️✔️-name:

hosts:

tasks:

How to syntax check a playbook - Answer✔️✔️-ansible-playbook --syntax-
check playbook.yml

How to dry run a playbook - Answer✔️✔️-ansible-playbook -C
playbook.yml




1

, ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM

Keywords for controlling ansible user, as well as escalating privilege -
Answer✔️✔️-remote_user: user

become: yes/no

become: true/false

become_method: sudo

Sample output for a module - Answer✔️✔️-ansible-doc -s module_name

Defining variables - Answer✔️✔️-vars:

name1: value1

name2: value2

vars_files:

- vars/users.yml

Using (referencing) a variable in a playbook - Answer✔️✔️-{{ var_name }}
(use quotes if starting a value)

Defining group variables and host variables - Answer✔️✔️-
group_vars/group_name, host_vars/host_name



name:value



(group_name and host_name can be a file or a directory)




2

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
SophiaBennett Howard Community College
View profile
Follow You need to be logged in order to follow users or courses
Sold
130
Member since
1 year
Number of followers
5
Documents
8567
Last sold
2 weeks ago
EXAM GAME-CHANGER

Exam Questions and Answers Section : Study Like a Pro, Study Smart, Study with Sophia.

3.7

26 reviews

5
10
4
5
3
7
2
1
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions