Closed drosofff closed 8 years ago
Well, to quote myself from earlier this year: "The artimed-extras role must die!".
Let's see step by step:
Where a lot of things are skipped, due to a lot of "false" value passed by default in ansible-artimed/roles/artimed_extras/defaults/main.yml.
Is all that folk's actually required ?
The role is doing a few different things:
To reduce this we could
The data_manager_task_file: "extra-files/artimed/artimed_data_manager_tasks.yml"
in ansible-artimed/group_vars/artimed, is not clear to me. In short, what is the purpose of this file :
When building the artimed flavor, this would run the data managers in data_managers:
for the dbkeys in dbkeys:
So yes, this role should be removed.
I would like to simplify both these items, or at least understand the logics behind which sometimes seems redundant to me.
A typical
ansible-playbook ... galaxy.yml
for instance with [galaxy-kickstart] gives this log:Where a lot of things are skipped, due to a lot of "false" value passed by default in ansible-artimed/roles/artimed_extras/defaults/main.yml.
data_manager_task_file: "extra-files/artimed/artimed_data_manager_tasks.yml"
in ansible-artimed/group_vars/artimed, is not clear to me. In short, what is the purpose of this file :
since with other inventories, we manage the data_manager tools just with the tool_list.yml ?
The presence of a data_manager_tasks.yml file in the same extra-files/artimed/ directory further complicates the thing.
These are 3 examples, others things are difficult to follow.
For instance, artimed_extras is a role played in the galaxy.yml playbook. This is confusing. If it is "extra" (as artimed let to think of it) why including it in the galaxy.yml default playbook ? Either there is important things to play with this role, and it should probably be renamed and curated from dispensable tasks (that are currently put to false anyway if I understand) Or Nothing is important (I don't think it's true indeed), and then we should remove the role from the playbook.
In summary, the artimed-extra role is probably badly named and/or has confusing unused code, and, the artimed groupvars seems unnecessarily complicated with some code with unclear purpose/effect