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 3 years ago. Updated about 3 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

Also available in: Atom PDF