Project

General

Profile

Actions

Feature #34121

closed

Add functionality in Hammer and API to Add/Delete a single Ansible role to Hostgroup without defining every role.

Added by Oleh Fedorenko over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2029402

1. Description of Request:

Currently, there's no option to just Add/Delete a single Ansible role to Hostgroup without defining every role.

For adding a role to a hostgroup which already has few roles assigned to it, we need to follow the below process:

For Example:

To add role3 to hostgroup test which already has role1 and role2 assigned to it, one needs to run:
~~~
  1. hammer hostgroup ansible-roles assign --name test --ansible-roles role1,role2,role3
    ~~~
Similarly, to remove only role3 from the above hostgroup, one has to run:
~~~
  1. hammer hostgroup ansible-roles assign --name test --ansible-roles role1,role2
    ~~~

2. Why does the customer need this? (List the business requirements here)

Customer has problem with this as defining always every role is highly impractical/not user friendly.

Actions #1

Updated by Oleh Fedorenko over 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Oleh Fedorenko
Actions #2

Updated by Oleh Fedorenko about 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman-ansible/pull/10 added
Actions #3

Updated by The Foreman Bot about 2 years ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/525 added
Actions #4

Updated by The Foreman Bot about 2 years ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/528 added
Actions #5

Updated by The Foreman Bot almost 2 years ago

  • Fixed in Releases hammer-cli-foreman-ansible 0.3.3 added
Actions #6

Updated by Oleh Fedorenko almost 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Oleh Fedorenko almost 2 years ago

  • Fixed in Releases deleted (hammer-cli-foreman-ansible 0.3.3)
Actions

Also available in: Atom PDF