100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

RHCE Exam Study Guide with Complete Solutions

Beoordeling
-
Verkocht
-
Pagina's
9
Cijfer
A+
Geüpload op
28-08-2024
Geschreven 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

Meer zien Lees minder
Instelling
RHCE
Vak
RHCE









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
RHCE
Vak
RHCE

Documentinformatie

Geüpload op
28 augustus 2024
Aantal pagina's
9
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

©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

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
SophiaBennett Howard Community College
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
130
Lid sinds
1 jaar
Aantal volgers
5
Documenten
8567
Laatst verkocht
2 weken geleden
EXAM GAME-CHANGER

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

3.7

26 beoordelingen

5
10
4
5
3
7
2
1
1
3

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen