• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

RHCE Exam Study Guide with Complete Solutions

Document preview thumbnail
Preview 2 out of 9 pages

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

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

Document information

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

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
3.6
(29)
Sold
159
Followers
5
Items
9084
Last sold
1 month ago




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions