RHCE study Guide Questions, all Solved 100%
Correct _Verified Answer
ansible config file precedence - ✔✔./ansible.cfg
~/.ansible.cfg
/etc/ansible/ansible.cfg
ansible adhoc command syntax - ✔✔ansible <host-pattern> -m <module> [-a
"argument1=value1 argument2=value2"]
enable privilege escalation for a play - ✔✔become:yes
ansible plugin: install packages - ✔✔yum
ansible plugin: services - ✔✔service
ansible plugin: configure firewall - ✔✔firewalld
ansible plugin: download a file - ✔✔get_url
ansible plugin: test a url - ✔✔uri
ansible plugin: copy local file to destination - ✔✔copy
ansible plugin: create a directory - ✔✔file
ansible plugin: create file content - ✔✔copy
, ansible conditional syntax - ✔✔when: >
condition1 == value1 <and|or>
condition2 == value2
trigger ansible handler - ✔✔notify
use tasks from another file - ✔✔import_tasks
goes inside a task
ansible navigator equiv: ansible-playbook - ✔✔ansible-navigator run
ansible navigator equiv: ansible-doc - ✔✔ansible-navigator doc
ansible navigator equiv: ansible-config - ✔✔ansible-navigator config
ansible navigator equiv: ansible-inventory - ✔✔ansible-navigator inventory
ansible config parameter: set remote user - ✔✔[defaults]
remote_user = <user-name>
ansible config parameter: no remote user password prompt - ✔✔[defaults]
ask_pass = false
ansible config parameter: inventory - ✔✔[defaults]
inventory = <file>
Correct _Verified Answer
ansible config file precedence - ✔✔./ansible.cfg
~/.ansible.cfg
/etc/ansible/ansible.cfg
ansible adhoc command syntax - ✔✔ansible <host-pattern> -m <module> [-a
"argument1=value1 argument2=value2"]
enable privilege escalation for a play - ✔✔become:yes
ansible plugin: install packages - ✔✔yum
ansible plugin: services - ✔✔service
ansible plugin: configure firewall - ✔✔firewalld
ansible plugin: download a file - ✔✔get_url
ansible plugin: test a url - ✔✔uri
ansible plugin: copy local file to destination - ✔✔copy
ansible plugin: create a directory - ✔✔file
ansible plugin: create file content - ✔✔copy
, ansible conditional syntax - ✔✔when: >
condition1 == value1 <and|or>
condition2 == value2
trigger ansible handler - ✔✔notify
use tasks from another file - ✔✔import_tasks
goes inside a task
ansible navigator equiv: ansible-playbook - ✔✔ansible-navigator run
ansible navigator equiv: ansible-doc - ✔✔ansible-navigator doc
ansible navigator equiv: ansible-config - ✔✔ansible-navigator config
ansible navigator equiv: ansible-inventory - ✔✔ansible-navigator inventory
ansible config parameter: set remote user - ✔✔[defaults]
remote_user = <user-name>
ansible config parameter: no remote user password prompt - ✔✔[defaults]
ask_pass = false
ansible config parameter: inventory - ✔✔[defaults]
inventory = <file>