• 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 8 pages
Exam (elaborations)

RHCE Exam Study Guide with Complete Solutions

Document preview thumbnail
Preview 2 out of 8 pages

©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 3 ansible config parameter: set remote user - Answer️️ -[defaults] remote_user = user-name ansible config parameter: no remote user password prompt - Answer️️ - [defaults] ask_pass = false ansible config parameter: inventory - Answer️️ -[defaults] inventory = file ansible config parameter: escalate - Answer️️ -[privilege_escalation] become = true ansible config parameter: escalation method - Answer️️ - [privilege_escalation] become_method = sudo ansible config parameter: escalated user - Answer️️ -[privilege_escalation] become_user = user ansible config parameter: escalation password prompt - Answer️️ - become_ask_pass = true|false ansible playbook option: variables - Answer️️ -vars: var1: value1 var2: value2 ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 4 ansible playbook option: variables from a files - Answer️️ -vars_files: - - ansible variables in inventory - Answer️️ -host1 var1=value1 var2=value2 anible fact: short host name - Answer️️ -ansible_facts['hostname'] anible_fact: fqdn - Answer️️ -ansible_facts['fqdn'] anible fact: primary ipv4 address - Answer️️ - ansible_facts['default_ipv4']['address'] anible fact: network interfaces - Answer️️ -ansible_facts['interfaces'] anible fact: size of /dev/vda1 disk partition - Answer️️ - ansible_facts['devices']['vda']['partitions']['vda1']['size'] anible fact: dns servers - Answer️️ -ansible_facts['dns']['nameserv

Content preview

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

RHCE Exam Study Guide with Complete Solutions

initialize ansible role - Answer✔️✔️-ansible-galaxy init <role-name>

show ansible config - Answer✔️✔️-ansible-config list

ansible-config dump -v --only-changed

nested inventory group syntax - Answer✔️✔️-[<parent-name>:children]

group1

group2

inventory host pattern syntax - Answer✔️✔️-server1

server[1:9]

server[a:z]

ansible config file precedence - Answer✔️✔️-./ansible.cfg

~/.ansible.cfg

/etc/ansible/ansible.cfg

ansible adhoc command syntax - Answer✔️✔️-ansible <host-pattern> -m
<module> [-a "argument1=value1 argument2=value2"]

enable privilege escalation for a play - Answer✔️✔️-become:yes

ansible plugin: install packages - Answer✔️✔️-yum

ansible plugin: services - Answer✔️✔️-service



1

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

ansible plugin: configure firewall - Answer✔️✔️-firewalld

ansible plugin: download a file - Answer✔️✔️-get_url

ansible plugin: test a url - Answer✔️✔️-uri

ansible plugin: copy local file to destination - Answer✔️✔️-copy

ansible plugin: create a directory - Answer✔️✔️-file

ansible plugin: create file content - Answer✔️✔️-copy

ansible conditional syntax - Answer✔️✔️-when: >

condition1 == value1 <and|or>

condition2 == value2

trigger ansible handler - Answer✔️✔️-notify

use tasks from another file - Answer✔️✔️-import_tasks

goes inside a task

ansible navigator equiv: ansible-playbook - Answer✔️✔️-ansible-navigator
run

ansible navigator equiv: ansible-doc - Answer✔️✔️-ansible-navigator doc

ansible navigator equiv: ansible-config - Answer✔️✔️-ansible-navigator
config

ansible navigator equiv: ansible-inventory - Answer✔️✔️-ansible-navigator
inventory



2

Document information

Uploaded on
August 28, 2024
Number of pages
8
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.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