Your one-stop repository for Ansible playbooks, roles, and boilerplate code. Designed to accelerate your automation projects and make life easier for Red Hat consultants and Ansible enthusiasts alike.
In the realm of automation, every minute saved is a minute earned. AnsibleCraft
aims to provide a robust collection of Ansible assets that help you kick-start your projects. Be it setting up complex environments, orchestrating microservices, or simply automating mundane tasks, AnsibleCraft
is engineered to elevate your automation game.
Option | Description |
---|---|
syntax on |
Enable syntax highlighting. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
autocmd BufNewFile,BufReadPost |
Define autocommands that trigger when a new buffer is opened or read. |
*.yml,*.yaml setfiletype yaml |
Set the file type to yaml for .yml and .yaml file extensions. |
*.py setfiletype python |
Set the file type to python for .py file extensions. |
*.ini setfiletype ini |
Set the file type to ini for .ini file extensions. |
*.json setfiletype json |
Set the file type to json for .json file extensions. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
autocmd FileType yaml |
Define autocommands that trigger when the file type is set to yaml . |
setlocal ai |
Enable auto-indentation. |
setlocal ts=2 |
Set the tabstop width to 2 spaces. |
setlocal sw=2 |
Set the shift width to 2 spaces. |
setlocal et |
Enable the "expandtab" option to use spaces instead of tabs for indentation. |
setlocal nu |
Show line numbers. |
setlocal cuc |
Highlight the cursor line. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
autocmd FileType python |
Define autocommands that trigger when the file type is set to python . |
setlocal ai |
Enable auto-indentation. |
setlocal ts=4 |
Set the tabstop width to 4 spaces. |
setlocal sw=4 |
Set the shift width to 4 spaces. |
setlocal et |
Enable the "expandtab" option to use spaces instead of tabs for indentation. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
autocmd FileType ini |
Define autocommands that trigger when the file type is set to ini . |
setlocal ai |
Enable auto-indentation. |
setlocal ts=2 |
Set the tabstop width to 2 spaces. |
setlocal sw=2 |
Set the shift width to 2 spaces. |
setlocal et |
Enable the "expandtab" option to use spaces instead of tabs for indentation. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
autocmd FileType json |
Define autocommands that trigger when the file type is set to json . |
setlocal ai |
Enable auto-indentation. |
setlocal ts=4 |
Set the tabstop width to 4 spaces. |
setlocal sw=4 |
Set the shift width to 4 spaces. |
setlocal et |
Enable the "expandtab" option to use spaces instead of tabs for indentation. |