manala.ansible
#######################################################################################################
:exclamation: DEPRECATION :exclamation:
This repository and the role associated are deprecated in favor of the Manala Ansible Collection
You will find informations on its usage on the collection repository
#######################################################################################################
Ansible Role: Ansible 
:exclamation: Report issues and send Pull Requests in the main Ansible Role repository :exclamation:
This role will deal with the setup and the config of Ansible.
It's part of the Manala Ansible stack but can be used as a stand alone component.
Requirements
This role is made to work with the manala ansible debian package, available on the manala debian repository. Please use the manala.apt role to handle it properly.
manala_apt_preferences:
- ansible@manala
Installation
Ansible 2+
Using ansible galaxy cli:
ansible-galaxy install manala.ansible
Using ansible galaxy requirements file:
- src: manala.ansible
Role Handlers
None
Role Variables
Definition
| Name | Default | Type | Description |
|---|---|---|---|
manala_ansible_install_packages |
~ | Array | Dependency packages to install |
manala_ansible_install_packages_default |
['ansible'] | Array | Default dependency packages to install |
manala_ansible_hosts_file |
'/etc/ansible/hosts' | String | Hosts file path |
manala_ansible_hosts_template |
'hosts/empty.j2' | String | Default hosts template path |
manala_ansible_hosts |
[] | Array | Hosts |
manala_ansible_config_file |
'config/_base.j2' | String | Configuration file path |
manala_ansible_config_template |
'hosts/empty.j2' | String | Default configuration template path |
manala_ansible_config |
[] | Array | Configuration |
manala_ansible_host_vars_exclusive |
false | Boolean | Host vars exclusivity |
manala_ansible_host_vars_dir |
'/etc/ansible/host_vars' | String | Host vars dir path |
manala_ansible_host_vars_template |
'host_vars/empty.j2' | String | Default host vars template path |
manala_ansible_host_vars |
[] | Array | Host vars |
manala_ansible_group_vars_exclusive |
false | Boolean | Group vars exclusivity |
manala_ansible_group_vars_dir |
'/etc/ansible/group_vars' | String | Group vars dir path |
manala_ansible_group_vars_template |
'group_vars/empty.j2' | String | Default group vars template path |
manala_ansible_group_vars |
[] | Array | Group vars |
Configuration example
manala_ansible_hosts:
- foo: >
ansible_host=foo.com
ansible_user=foo
- bar:
- foo
- bar:vars:
- bar=baz
manala_ansible_config:
- defaults:
- forks: 123
- ask_sudo_pass: false
- module_set_locale: true
manala_ansible_host_vars_exclusive: true
manala_ansible_host_vars:
- file: foo.yml
vars:
- foo: ~
- bar: bar
- baz: 123
- file: bar.yml
state: absent
manala_ansible_group_vars_exclusive: true
manala_ansible_group_vars:
- file: foo.yml
vars:
- foo: ~
- bar: bar
- baz: 123
- file: bar.yml
state: absent
Example
- hosts: all
roles:
- role: manala.ansible
Licence
MIT
Author information
Manala (http://www.manala.io/)
Install
ansible-galaxy install manala.ansibleLicense
Unknown
Downloads
1.4k
Owner
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.
