cancel
Showing results for 
Search instead for 
Did you mean: 
morbius
Flight Engineer
Flight Engineer
  • 11K Views

EX294 (RHCE) exam environment

Jump to solution

Hi, I need some information on what I have available to me during the EX294 exam. Does Ansible controller host have on it graphical environment with an available text editor, such as gedit? Can I copy/paste text between browser with the questions and host where I'm writing playbooks?

 

Gedit is an excellent text editor able to detect and properly mark Ansible sintax, it would be a great help not having to edit playbooks in nano, or god forbid vi. My RHCSA exam was a horrible experience, copy/paste didn't work. Terminal I had available couldn't connect to servers, so I had to do everything from VM terminals, typing manually. Add to that that DNS didn't work, I can't believe how I managed to pass. I can't aford to lose time fighting with the exam environment again, I need to know what I can use and how.

Labels (2)
31 Replies
AlienHeat
Cadet
Cadet
  • 30 Views

The ansible documentation is available as an url but don’t rely on it. I passed the exam a couple of weeks ago and the key thing that helped me was adding a function to .bashrc pull examples  from ansible-doc into the editor in a flattened format ie: not as yaml. This allowed me to quickly select an example that looked similar to what I needed and yank and paste it where I needed it then customize. With flat functions you don’t need to worry about yaml indentation. I would call the macro as “:r !flat user” for example to pull all examples of   user: name=blah uid=whatever etc into my editor.

put this in your .bashrc and source it:

function examples() {
  ansible-doc $1 | awk '/'"$1"':/ {p=1} /^$/ {p=0} p'
}
export -f examples

function flat() {
  examples $1 | perl -e '
  $m = shift @ARGV;
  while(<STDIN>) {
  chomp;
  s/^[\s-]+//;
  /$m:/ ? do print "\n  - $_" : do { s/:\s+/=/ ; print " $_" }
}
print "\n";
' "$1"
}
export -f flat

That works like a charm.

Another tip: Forget about using "name:" everywhere. Its a total waste of time.

Another tip: Either swtich off the use of colors or make the errors yellow to better read them

Good Luck!

AnaV
Flight Engineer
Flight Engineer
  • 18 Views

Thanks a million for those tips, really appreciate!

0 Kudos
Join the discussion
You must log in to join this conversation.