Ansible Role ansible_init
ansible-init
helps installing a working Ansible environment including roles from LFOps and a list Ansible inventories from various Git repositories.
This role:
Updates ansible_init (
ansinv
) itselfUpdates LFOps
Loads the list of Git repositories containing Ansible inventories
Clones the inventories
Optionally clones the roles to
../roles/
Installs recommended Ansible collections
Mandatory Role Variables
Variable |
Description |
---|---|
|
URL of the ansinv repo. |
Example:
# mandatory
ansible_init__url: 'git@example.com:my-ansinv.git'
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
List of dictionaries of Ansible collections to install. Subkeys: |
All collections required to use LFOps |
|
List of dictionaries of inventories to clone. Subkeys: |
|
|
URL of the LFOps repo. Either |
|
|
List of dictionaries of roles to clone. Subkeys: |
|
|
Git version of the ansinv repo to checkout. |
|
Example:
# optional
ansible_init__ansible_collections:
- name: 'community.mysql'
- name: 'ngine_io.cloudstack'
ansible_init__inventories: []
ansible_init__lfops_url: 'git@github.com:Linuxfabrik/lfops.git'
ansible_init__roles: []
ansible_init__version: 'main'