RHCE Exam Questions with Correct Answers New update
7 views 0 purchase
Course
RHCE
Institution
RHCE
RHCE Exam Questions with Correct Answers New update
How to syntax check a playbook - Answer-ansible-playbook --syntax-check
How to dry run a playbook - Answer-ansible-playbook -C
Keywords for controlling ansible user, as well as escalating privilege - Answer-remote_user: user
become: yes/...
RHCE Exam Questions with Correct
Answers New update
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
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
Run playbook with encrypted files - Answer-ansible-playbook --vault-id @prompt
playbook.yml
ansible-playbook --vault-password-file=vault-pw-file playbook.yml
Important Ansible facts - Answer-ansible_facts['hostname']
ansible_facts['fqdn']
ansible_facts['default_ipv4']['address']
ansible_facts['distribution']
ansible_facts['os_family']
Default location for custom facts - Answer-/etc/ansible/facts.d/*.fact
Most useful/notable magic variables - Answer-hostvars
group_names
groups
inventory_hostname
How to get/display ansible facts - Answer-ansible host -m setup
Multi-line values (conditionals, strings, etc) - Answer-whatever: >
content on the next line here
and here
etc etc
Keyword for looping - Answer-loop: list (can be variable)
Keyword for conditionals - Answer-when: condition
OR
when:
- condition
- condition
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
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 Scholarsstudyguide. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.