100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCE Study Set | Questions And Answers Latest {} A+ Graded | 100% Verified $13.48   Add to cart

Exam (elaborations)

RHCE Study Set | Questions And Answers Latest {} A+ Graded | 100% Verified

 1 view  0 purchase
  • Course
  • Top Academic Resources 2024/2025
  • Institution
  • Top Academic Resources 2024/2025

RHCE Study Set | Questions And Answers Latest {} A+ Graded | 100% Verified

Preview 2 out of 7  pages

  • August 25, 2024
  • 7
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Top Academic Resources 2024/2025
  • Top Academic Resources 2024/2025
avatar-seller
oneclass
RHCE Study Set | Questions And Answers Latest {2024- 2025} A+ Graded | 100% Verified




Ansible configuration groups - [defaults], [privilege_escalation]



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



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



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

ansible-doc -l (lists all modules)



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



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

hosts:

tasks:



How to syntax check a playbook - ansible-playbook --syntax-check playbook.yml



How to dry run a playbook - ansible-playbook -C playbook.yml



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

become: yes/no

become: true/false

become_method: sudo



Sample output for a module - ansible-doc -s module_name

, Defining variables - vars:

name1: value1

name2: value2

vars_files:

- vars/users.yml



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



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



name:value



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



Overriding variables - ansible-playbook main.yml -e "name=value"



Referencing arrays - users.bjones.first_name

users['bjones']['first_name']



How to save the output from a module to a variable - register: var_name



How to output/display variable - - debug: var=var_name



Creating encrypted ansible file - ansible-vault create secret.yml

ansible-vault create --vault-password-file=vault-pass secret.yml



(use vault ID's if creating multiple vault passwords in a playbook)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller oneclass. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.48. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78998 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.48
  • (0)
  Add to cart