Difference between revisions of "Ansible"

From Freephile Wiki
Jump to navigation Jump to search
(basic ansible setup from git)
(A bit more info on ansible-galaxy)
Line 39: Line 39:
 
=== Initialize a Project ===
 
=== Initialize a Project ===
 
'''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.
 
'''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> <code>ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options]</code>
  
 
== Modules ==
 
== Modules ==
Line 197: Line 199:
 
* http://jpmens.net/2012/06/06/configuration-management-with-ansible/
 
* http://jpmens.net/2012/06/06/configuration-management-with-ansible/
 
* [http://jinja.pocoo.org/docs/dev/ Jinja] - the template engine for Ansible
 
* [http://jinja.pocoo.org/docs/dev/ Jinja] - the template engine for Ansible
 +
 +
{{References}}
  
 
[[Category:Configuration Management]]
 
[[Category:Configuration Management]]
 
[[Category:DevOps]]
 
[[Category:DevOps]]

Revision as of 13:46, 19 July 2017