Open main menu

Changes

add vscode plugin
===Initialize a Project===
Use '''[https://galaxy.ansible.com/ui/ Ansible Galaxy]''' If you want to do a new project, you can use the <code>ansible-galaxy foo init</code> command which will create the directory and file structure for 'foo' in the current working directory.
Also, if you want to install other Ansible Galaxy projects, you can either do it "manually" <code> ansible-galaxy install -r </code> Or, setup a 'requirements.yml' file in your playbook that then gets run by your stack. <ref>https://stackoverflow.com/questions/25230376/how-to-automatically-install-ansible-galaxy-roles</ref> <ref>Supposedly this only works for newer versions of Ansible, per the warning on their homepage:<blockquote> Warning alert:To be able to download content from galaxy it is required to have ansible-core>=2.13.9 Please, check it running the command: ansible --version</blockquote> '''But''', it worked fine for me in the Meza 1_39 upgrade using Ansible 2.9.27</ref>  <code>ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options]</code>
==Modules==
'''Play''': each play and contained structures, vars entries, include_vars, role defaults and vars.
'''Host''': variables directly associated to a host, like inventory, facts or registered task outputs
 
== Ansible with VSCode ==
https://marketplace.visualstudio.com/items?itemName=redhat.ansible
==Ansible with Vagrant==