Project

General

Profile

Feature #27273

Tracker #31404: Improve Ansible integration so it is usable as CfgMngmt tool

Enable to choose the launch order for Ansible roles

Added by Kenny Tordeurs almost 2 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Target version:
-

Description

Currently the Ansible roles are launched in a different order then presented for the host.

Extract from [[https://community.theforeman.org/t/foreman-ansible-choose-the-order-of-launch-roles/13254]]
~~~
The ordering of roles is not yet implemented. The workaround for now is creating a meta-role, that has the roles specified in the correct order.

The main reason is that we are not sure how to tackle inheritance of roles in a flexible but sane way. Currently, we are thinking about having sorted ‘lists’ of roles on each level and adding the roles from the oldest parent first and then moving down the inheritance chain.
~~~


Related issues

Related to Ansible - Refactor #32069: Improve the look of AnsibleRolesSwitcherClosed

Associated revisions

Revision 7d78261d (diff)
Added by Ondřej Pražák about 2 months ago

Fixes #27273 - Specify order for ansible roles

Ensures that user-specified order of Ansible Roles
for host or hostgroup is persisted.

Revision 0d49745f (diff)
Added by Ondřej Ezr about 1 month ago

Refs #27273 - improve passing assigned roles

Gets the assigned roles from the association itself as that preserve unsaved assignment changes.
Also this is much easier to get and should be most definitely leveraged.

Revision 2e11848a (diff)
Added by Ondřej Pražák about 1 month ago

Fixes #27273 - Make Ansible Roles Switcher draggable

Adds ability to reorder roles in AnsibleRolesSwitcher.

History

#1 Updated by Marek Hulán over 1 year ago

  • Subject changed from [RFE] Ability to choose the launch order for Ansible roles to Ability to choose the launch order for Ansible roles
  • Project changed from Foreman to Ansible

#2 Updated by The Foreman Bot 3 months ago

  • Assignee set to Ondřej Pražák
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/380 added

#3 Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/384 added

#4 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/386 added

#5 Updated by Ondřej Pražák about 2 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Ondřej Ezr about 2 months ago

  • Status changed from Closed to Ready For Testing
  • Subject changed from Ability to choose the launch order for Ansible roles to Enable to choose the launch order for Ansible roles

#7 Updated by Ondřej Ezr about 2 months ago

  • Parent task set to #31404

#8 Updated by Ondřej Pražák about 1 month ago

  • Status changed from Ready For Testing to Closed

#9 Updated by Ondřej Pražák about 1 month ago

  • Related to Refactor #32069: Improve the look of AnsibleRolesSwitcher added

Also available in: Atom PDF