cancel
Showing results for 
Search instead for 
Did you mean: 
harshmangal_11
Mission Specialist
Mission Specialist
  • 5,070 Views

Ansible Prerequisite

Jump to solution

I am planning to learn anisble and wanna know what are the prerequisites for learning ansible.Should I have containers knowledge or DevOps knowledge to learn Ansible.

Labels (2)
0 Kudos
1 Solution

Accepted Solutions
Travis
Moderator
Moderator
  • 4,974 Views

I highly suggest being familiar with VIM and creating a good VIMRC. When teaching and delivering Ansible courses, the thing I find causes students the most grief is horizontal spacing and alignment in the Ansible playbook files (YAML) as this is very sensitive to spacing and you definitely don't want to have tabs in there.

Here is the line I use in my VIMRC

[student@workstation ~]$ cat .vimrc
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 ai et cuc colorcolumn=3,5,7,9,11

 

Sometimes all the vertical colored column guides can get confusing, so I can turn them off using VIM in command mode and issue ...

:set colorcolumn=

which will disable the color columns for that session of VIM.

 

 

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training

View solution in original post

4 Replies
dennishart
Mission Specialist
Mission Specialist
  • 5,051 Views

For the Ansible course I'd say there's no real prior knowledge required but it would be highly suggested to know the material from the RHCSA as it would make more sense on the things you where doing. If you know Redhat administration pretty well you're good. On the DevOps side of things you need to know nothing, just heads up without someone working through this with you expect to run into errors and try to figure out the problem with the playbooks. It mostly will be spacing errors or using a tab instead of a space. Once you get through that you'll be set expect it to take a few weeks of hard studying to get through it.

harshmangal_11
Mission Specialist
Mission Specialist
  • 5,046 Views

Am already RHCSA certfied..

0 Kudos
Travis
Moderator
Moderator
  • 4,975 Views

I highly suggest being familiar with VIM and creating a good VIMRC. When teaching and delivering Ansible courses, the thing I find causes students the most grief is horizontal spacing and alignment in the Ansible playbook files (YAML) as this is very sensitive to spacing and you definitely don't want to have tabs in there.

Here is the line I use in my VIMRC

[student@workstation ~]$ cat .vimrc
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 ai et cuc colorcolumn=3,5,7,9,11

 

Sometimes all the vertical colored column guides can get confusing, so I can turn them off using VIM in command mode and issue ...

:set colorcolumn=

which will disable the color columns for that session of VIM.

 

 

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 4,954 Views

I throw nu into my .vimrc there as well -- to turn on line numbering.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
Join the discussion
You must log in to join this conversation.