Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ansible development environment

Currently I'm developing ansible orchestration system. The project structure is something like this:

site.yml webservers.yml fooservers.yml roles/ common/ files/ templates/ tasks/ handlers/ vars/ defaults/ meta/ webservers/ files/ templates/ tasks/ handlers/ vars/ defaults/ meta/

As a result I have to deal with dozens of play-books, roles, subdirectories, tasks, variable files, so on. For now, I use WinSCP as a kind of IDE (I work from Windows dev machine) This solution is far from being perfect but allow me easy navigation among files and folders. In fact I miss Visual Studio (intellisense!) very much. I tried Eclipse installed on my dev machine before but it was too slow. I found shell tools rather uncomfortable. Due to corporate constraints I can not add any more VM-s.

So, my question is: are there any Windows (or lightweight Ubuntu GUI) tools to deal with complicated structure of files and folders for Linux development?

like image 344
Na Na Avatar asked Jul 30 '15 20:07

Na Na


People also ask

What is Ansible development?

Ansible® is an open source, command-line IT automation software application written in Python. It can configure systems, deploy software, and orchestrate advanced workflows to support application deployment, system updates, and more. Ansible's main strengths are simplicity and ease of use.

What does an Ansible developer do?

Ansible developers (including community contributors) add new features, fix bugs, and update code in many different repositories in the Ansible community. The ansible/ansible repository contains the code for basic features and functions, such as copying module code to managed nodes.

Is Ansible a development tool?

Ansible Automation PlatformIt is a platform composed of multiple components including developer tooling, an operations interface, as well as an Automation Mesh to enable automation tasks at scale across data centers.


3 Answers

JetBrains-based IDEs have a YAML/Ansible plugin to add some context and syntax highlighting to Ansible playbook structure.

Sublime has a plugin to add syntax highlighting to Ansible files https://github.com/clifford-github/sublime-ansible

Both tools can display folder structure and connect using sftp/ssh to remote servers.

like image 116
Mxx Avatar answered Oct 13 '22 16:10

Mxx


Vim is not considered an IDE by all, but I (work on and) use Rocannon for Ansible every day for its auto-completion, syntax highlighting, built-in help and other IDE-like features.

Vim is not a very quick learn, but it is light. :)

There's a GIF demo on the Rocannon github page to give you a feel for what it offers.

like image 27
Micah Elliott Avatar answered Oct 13 '22 17:10

Micah Elliott


Here is the official list of IDE's or editors: https://docs.ansible.com/ansible/latest/community/other_tools_and_programs.html#popular-editors

Currently it seems your best option is Visual Studio Code since it has auto-completion and syntax highlighting specifically for Ansible.

like image 42
Ivan Baldo Avatar answered Oct 13 '22 17:10

Ivan Baldo