Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/reference/audit-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ Every event is a JSON object. Fields that do not apply to an event are left out.
| `resource.inventory_host` | `update` | `change` | success | | `inventory_id`, `inventory_name`, `changed_fields`, `old_name`, `added_variables`, `removed_variables`, `changed_variables` | Community |
| `resource.inventory_host` | `enable` | `change` | success | | `inventory_id`, `inventory_name` | Community |
| `resource.inventory_host` | `disable` | `change` | success | | `inventory_id`, `inventory_name` | Community |
| `resource.inventory_host` | `delete` | `deletion` | success | | `inventory_id`, `inventory_name` | Community |
| `resource.inventory_host` | `delete` | `deletion` | success | | `inventory_id`, `inventory_name`, `groups`, `part`, `parts` | Community |
| `resource.inventory_group` | `create` | `creation` | success | | `inventory_id`, `inventory_name`, `added_variables` | Community |
| `resource.inventory_group` | `update` | `change` | success | | `inventory_id`, `inventory_name`, `changed_fields`, `old_name`, `added_variables`, `removed_variables`, `changed_variables` | Community |
| `resource.inventory_group` | `delete` | `deletion` | success | | `inventory_id`, `inventory_name`, `children`, `parents`, `host_count`, `part`, `parts` | Community |
| `resource.inventory_group` | `host_add` | `change` | success | | `inventory_id`, `inventory_name`, `hosts`, `part`, `parts` | Community |
| `resource.inventory_group` | `host_remove` | `change` | success | | `inventory_id`, `inventory_name`, `hosts`, `part`, `parts` | Community |
| `resource.inventory_group` | `child_add` | `change` | success | | `inventory_id`, `inventory_name`, `children`, `part`, `parts` | Community |
| `resource.inventory_group` | `child_remove` | `change` | success | | `inventory_id`, `inventory_name`, `children`, `part`, `parts` | Community |
| `resource.repository` | `create` | `creation` | success | | | Community |
| `resource.repository` | `update` | `change` | success | | | Community |
| `resource.repository` | `delete` | `deletion` | success | | | Community |
Expand Down
17 changes: 15 additions & 2 deletions docs/user-guide/inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ If you are not sure which resources are being used in an environment, follow ste

A managed inventory keeps your hosts as records instead of inventory text. Use it when you add, change, or switch off hosts often, and you do not want to edit one big text.

Click the name of the inventory in the list. The page has two tabs:
Click the name of the inventory in the list. The page has three tabs:

* **Hosts**: search hosts by name, add, edit, and delete them. The **Variables** column shows how many variables a host has.
* **Hosts**: search hosts by name, filter them by group, add, edit, and delete them. The **Groups** column shows the groups of a host. The **Variables** column shows how many variables a host has.
* **Groups**: groups of hosts. See [Groups](#managed-inventory-groups).
* **Variables**: variables of the whole inventory.

A host has a name, an optional description, and variables. The name is what Ansible sees as the host. It must be unique in the inventory, it is case-sensitive, and it must not contain spaces, commas, square brackets, or colons. Put the address and the port into the variables `ansible_host` and `ansible_port`.
Expand All @@ -79,3 +80,15 @@ To skip a host, turn off its switch in the list of hosts. Tasks created after th
* You cannot change the type of an inventory to or from `managed` after you create it.
* Hosts and variables of a managed inventory are part of the project backup.
* Users who can only view the project can open the page, but they cannot change it.

### Groups {#managed-inventory-groups}

A group lets you run a playbook on a part of the hosts, for example with `hosts: web`, and set a variable once for many hosts.

Add a group on the **Groups** tab. A group has a name, an optional description, variables, and child groups. The name must be unique in the inventory, and the names `all` and `ungrouped` are taken. The hosts of a child group also belong to the parent group. A group can not be its own ancestor.

To put a host into groups, choose them in the **Groups** field when you add or edit the host. To change several hosts at once, select them on the **Hosts** tab and click **Add to groups** or **Remove from groups**. A host can be in several groups.

To see the hosts of a group, choose the group in the filter on the **Hosts** tab. The list includes the hosts of its child groups.

A value set on a host wins over the same variable set on a group, and a value set on a group wins over the inventory. A task that targets a group runs on its hosts that are switched on.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ Wenn Sie nicht sicher sind, welche Ressourcen in einer Umgebung verwendet werden

Ein Managed Inventory speichert Ihre Hosts als Datensätze statt als Inventory-Text. Verwenden Sie es, wenn Sie Hosts oft hinzufügen, ändern oder ausschalten und keinen großen Text bearbeiten möchten.

Klicken Sie in der Liste auf den Namen des Inventory. Die Seite hat zwei Tabs:
Klicken Sie in der Liste auf den Namen des Inventory. Die Seite hat drei Tabs:

* **Hosts**: Hosts nach Namen suchen, hinzufügen, bearbeiten und löschen. Die Spalte **Variables** zeigt, wie viele Variablen ein Host hat.
* **Hosts**: Hosts nach Namen suchen, nach Gruppe filtern, hinzufügen, bearbeiten und löschen. Die Spalte **Groups** zeigt die Gruppen eines Hosts. Die Spalte **Variables** zeigt, wie viele Variablen ein Host hat.
* **Groups**: Gruppen von Hosts. Siehe [Gruppen](#managed-inventory-groups).
* **Variables**: Variablen des gesamten Inventory.

Ein Host hat einen Namen, eine optionale Beschreibung und Variablen. Der Name ist das, was Ansible als Host sieht. Er muss im Inventory eindeutig sein, Groß- und Kleinschreibung wird unterschieden, und er darf keine Leerzeichen, Kommas, eckigen Klammern oder Doppelpunkte enthalten. Schreiben Sie die Adresse und den Port in die Variablen `ansible_host` und `ansible_port`.
Expand All @@ -74,3 +75,15 @@ Um einen Host zu überspringen, schalten Sie seinen Schalter in der Host-Liste a
* Den Typ eines Inventory können Sie nach dem Erstellen nicht zu `managed` oder von `managed` weg ändern.
* Hosts und Variablen eines Managed Inventory sind Teil des Projekt-Backups.
* Benutzer, die das Projekt nur ansehen dürfen, können die Seite öffnen, aber nichts ändern.

### Gruppen {#managed-inventory-groups}

Mit einer Gruppe können Sie ein Playbook auf einem Teil der Hosts ausführen, zum Beispiel mit `hosts: web`, und eine Variable einmal für viele Hosts setzen.

Fügen Sie eine Gruppe im Tab **Groups** hinzu. Eine Gruppe hat einen Namen, eine optionale Beschreibung, Variablen und untergeordnete Gruppen. Der Name muss im Inventory eindeutig sein, und die Namen `all` und `ungrouped` sind vergeben. Die Hosts einer untergeordneten Gruppe gehören auch zur übergeordneten Gruppe. Eine Gruppe kann nicht ihr eigener Vorfahre sein.

Um einen Host in Gruppen aufzunehmen, wählen Sie sie im Feld **Groups** aus, wenn Sie den Host hinzufügen oder bearbeiten. Um mehrere Hosts auf einmal zu ändern, wählen Sie sie im Tab **Hosts** aus und klicken Sie auf **Add to groups** oder **Remove from groups**. Ein Host kann in mehreren Gruppen sein.

Um die Hosts einer Gruppe zu sehen, wählen Sie die Gruppe im Filter im Tab **Hosts**. Die Liste enthält auch die Hosts ihrer untergeordneten Gruppen.

Ein Wert, der an einem Host gesetzt ist, hat Vorrang vor derselben Variable in einer Gruppe, und ein Wert in einer Gruppe hat Vorrang vor dem Inventory. Ein Task, der auf eine Gruppe zielt, läuft auf ihren eingeschalteten Hosts.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ Si no está seguro de qué recursos se usan en un entorno, siga los pasos 1 y 2

Un inventario administrado guarda sus hosts como registros en lugar de texto de inventario. Úselo cuando agregue, cambie o desactive hosts con frecuencia y no quiera editar un texto largo.

Haga clic en el nombre del inventario en la lista. La página tiene dos pestañas:
Haga clic en el nombre del inventario en la lista. La página tiene tres pestañas:

* **Hosts**: busque hosts por nombre, agréguelos, edítelos y elimínelos. La columna **Variables** muestra cuántas variables tiene un host.
* **Hosts**: busque hosts por nombre, fíltrelos por grupo, agréguelos, edítelos y elimínelos. La columna **Groups** muestra los grupos de un host. La columna **Variables** muestra cuántas variables tiene un host.
* **Groups**: grupos de hosts. Consulte [Grupos](#managed-inventory-groups).
* **Variables**: variables de todo el inventario.

Un host tiene un nombre, una descripción opcional y variables. El nombre es lo que Ansible ve como host. Debe ser único en el inventario, distingue mayúsculas de minúsculas y no debe contener espacios, comas, corchetes ni dos puntos. Ponga la dirección y el puerto en las variables `ansible_host` y `ansible_port`.
Expand All @@ -74,3 +75,15 @@ Para omitir un host, desactive su interruptor en la lista de hosts. Las tareas c
* No puede cambiar el tipo de un inventario a `managed` ni desde `managed` después de crearlo.
* Los hosts y las variables de un inventario administrado forman parte de la copia de seguridad del proyecto.
* Los usuarios que solo pueden ver el proyecto pueden abrir la página, pero no pueden cambiarla.

### Grupos {#managed-inventory-groups}

Un grupo le permite ejecutar un playbook en una parte de los hosts, por ejemplo con `hosts: web`, y definir una variable una sola vez para muchos hosts.

Agregue un grupo en la pestaña **Groups**. Un grupo tiene un nombre, una descripción opcional, variables y grupos hijos. El nombre debe ser único en el inventario, y los nombres `all` y `ungrouped` están reservados. Los hosts de un grupo hijo también pertenecen al grupo padre. Un grupo no puede ser su propio ancestro.

Para poner un host en grupos, elíjalos en el campo **Groups** al agregar o editar el host. Para cambiar varios hosts a la vez, selecciónelos en la pestaña **Hosts** y haga clic en **Add to groups** o **Remove from groups**. Un host puede estar en varios grupos.

Para ver los hosts de un grupo, elija el grupo en el filtro de la pestaña **Hosts**. La lista incluye los hosts de sus grupos hijos.

Un valor definido en un host prevalece sobre la misma variable definida en un grupo, y un valor definido en un grupo prevalece sobre el inventario. Una tarea dirigida a un grupo se ejecuta en sus hosts que están activados.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ Si vous ne savez pas quelles ressources sont utilisées dans un environnement, s

Un inventaire géré conserve vos hôtes sous forme d'enregistrements plutôt que de texte d'inventaire. Utilisez-le si vous ajoutez, modifiez ou désactivez souvent des hôtes et que vous ne voulez pas modifier un long texte.

Cliquez sur le nom de l'inventaire dans la liste. La page comporte deux onglets :
Cliquez sur le nom de l'inventaire dans la liste. La page comporte trois onglets :

* **Hosts** : recherchez des hôtes par nom, ajoutez-les, modifiez-les et supprimez-les. La colonne **Variables** indique combien de variables possède un hôte.
* **Hosts** : recherchez des hôtes par nom, filtrez-les par groupe, ajoutez-les, modifiez-les et supprimez-les. La colonne **Groups** indique les groupes d'un hôte. La colonne **Variables** indique combien de variables possède un hôte.
* **Groups** : groupes d'hôtes. Voir [Groupes](#managed-inventory-groups).
* **Variables** : variables de l'inventaire entier.

Un hôte a un nom, une description facultative et des variables. Le nom est ce qu'Ansible voit comme hôte. Il doit être unique dans l'inventaire, il distingue les majuscules des minuscules, et il ne doit pas contenir d'espaces, de virgules, de crochets ni de deux-points. Placez l'adresse et le port dans les variables `ansible_host` et `ansible_port`.
Expand All @@ -74,3 +75,15 @@ Pour ignorer un hôte, désactivez son interrupteur dans la liste des hôtes. Le
* Vous ne pouvez pas changer le type d'un inventaire vers `managed` ni depuis `managed` après sa création.
* Les hôtes et les variables d'un inventaire géré font partie de la sauvegarde du projet.
* Les utilisateurs qui peuvent seulement consulter le projet peuvent ouvrir la page, mais ils ne peuvent pas la modifier.

### Groupes {#managed-inventory-groups}

Un groupe vous permet d'exécuter un playbook sur une partie des hôtes, par exemple avec `hosts: web`, et de définir une variable une seule fois pour de nombreux hôtes.

Ajoutez un groupe dans l'onglet **Groups**. Un groupe a un nom, une description facultative, des variables et des groupes enfants. Le nom doit être unique dans l'inventaire, et les noms `all` et `ungrouped` sont réservés. Les hôtes d'un groupe enfant appartiennent aussi au groupe parent. Un groupe ne peut pas être son propre ancêtre.

Pour placer un hôte dans des groupes, choisissez-les dans le champ **Groups** lorsque vous ajoutez ou modifiez l'hôte. Pour modifier plusieurs hôtes à la fois, sélectionnez-les dans l'onglet **Hosts** et cliquez sur **Add to groups** ou **Remove from groups**. Un hôte peut appartenir à plusieurs groupes.

Pour voir les hôtes d'un groupe, choisissez le groupe dans le filtre de l'onglet **Hosts**. La liste inclut les hôtes de ses groupes enfants.

Une valeur définie sur un hôte l'emporte sur la même variable définie sur un groupe, et une valeur définie sur un groupe l'emporte sur l'inventaire. Une tâche qui cible un groupe s'exécute sur ses hôtes activés.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ Se non si è sicuri di quali risorse utilizzino un ambiente, seguire i passaggi

Un Inventory gestito conserva gli host come record invece che come testo di Inventory. Utilizzarlo quando si aggiungono, modificano o disattivano host spesso e non si vuole modificare un testo lungo.

Fare clic sul nome dell'Inventory nell'elenco. La pagina ha due schede:
Fare clic sul nome dell'Inventory nell'elenco. La pagina ha tre schede:

* **Hosts**: cercare gli host per nome, aggiungerli, modificarli ed eliminarli. La colonna **Variables** mostra quante variabili ha un host.
* **Hosts**: cercare gli host per nome, filtrarli per gruppo, aggiungerli, modificarli ed eliminarli. La colonna **Groups** mostra i gruppi di un host. La colonna **Variables** mostra quante variabili ha un host.
* **Groups**: gruppi di host. Vedere [Gruppi](#managed-inventory-groups).
* **Variables**: variabili dell'intero Inventory.

Un host ha un nome, una descrizione facoltativa e variabili. Il nome è ciò che Ansible vede come host. Deve essere univoco nell'Inventory, distingue tra maiuscole e minuscole e non deve contenere spazi, virgole, parentesi quadre o due punti. Inserire l'indirizzo e la porta nelle variabili `ansible_host` e `ansible_port`.
Expand All @@ -74,3 +75,15 @@ Per saltare un host, disattivare il suo interruttore nell'elenco degli host. I t
* Dopo la creazione non è possibile cambiare il tipo di un Inventory in `managed` né da `managed`.
* Gli host e le variabili di un Inventory gestito fanno parte del backup del progetto.
* Gli utenti che possono solo visualizzare il progetto possono aprire la pagina, ma non possono modificarla.

### Gruppi {#managed-inventory-groups}

Un gruppo consente di eseguire un playbook su una parte degli host, ad esempio con `hosts: web`, e di impostare una variabile una sola volta per molti host.

Aggiungere un gruppo nella scheda **Groups**. Un gruppo ha un nome, una descrizione facoltativa, variabili e gruppi figli. Il nome deve essere univoco nell'Inventory, e i nomi `all` e `ungrouped` sono riservati. Gli host di un gruppo figlio appartengono anche al gruppo padre. Un gruppo non può essere un proprio antenato.

Per inserire un host in gruppi, sceglierli nel campo **Groups** quando si aggiunge o si modifica l'host. Per modificare più host insieme, selezionarli nella scheda **Hosts** e fare clic su **Add to groups** o **Remove from groups**. Un host può appartenere a più gruppi.

Per vedere gli host di un gruppo, scegliere il gruppo nel filtro della scheda **Hosts**. L'elenco include gli host dei suoi gruppi figli.

Un valore impostato su un host ha la precedenza sulla stessa variabile impostata su un gruppo, e un valore impostato su un gruppo ha la precedenza sull'Inventory. Un task destinato a un gruppo viene eseguito sui suoi host attivati.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ Managed インベントリのホストと変数を変更する方法は、[Manag

Managed インベントリは、インベントリのテキストではなく、ホストをレコードとして保持します。ホストを頻繁に追加、変更、無効化し、長いテキストを編集したくない場合に使用します。

一覧でインベントリの名前をクリックします。ページには 2 つのタブがあります。
一覧でインベントリの名前をクリックします。ページには 3 つのタブがあります。

* **Hosts**: ホストを名前で検索し、追加、編集、削除します。**Variables** 列には、ホストの変数の数が表示されます。
* **Hosts**: ホストを名前で検索し、グループで絞り込み、追加、編集、削除します。**Groups** 列には、ホストが属するグループが表示されます。**Variables** 列には、ホストの変数の数が表示されます。
* **Groups**: ホストのグループです。[グループ](#managed-inventory-groups)を参照してください。
* **Variables**: インベントリ全体の変数です。

ホストには、名前、任意の説明、変数があります。名前は、Ansible がホストとして認識するものです。インベントリ内で一意である必要があり、大文字と小文字は区別されます。スペース、カンマ、角括弧、コロンは使用できません。アドレスとポートは、変数 `ansible_host` と `ansible_port` に設定します。
Expand All @@ -74,3 +75,15 @@ ansible_user: deploy
* 作成後に、インベントリの種類を `managed` に変更したり、`managed` から変更したりすることはできません。
* Managed インベントリのホストと変数は、プロジェクトのバックアップに含まれます。
* プロジェクトの閲覧のみ可能なユーザーは、このページを開けますが、変更はできません。

### グループ {#managed-inventory-groups}

グループを使うと、たとえば `hosts: web` のようにホストの一部に対してプレイブックを実行したり、多くのホストに変数を一度に設定したりできます。

**Groups** タブでグループを追加します。グループには、名前、任意の説明、変数、子グループがあります。名前はインベントリ内で一意である必要があり、`all` と `ungrouped` という名前は予約されています。子グループのホストは、親グループにも属します。グループを自身の祖先にすることはできません。

ホストをグループに入れるには、ホストを追加または編集するときに **Groups** フィールドでグループを選択します。複数のホストをまとめて変更するには、**Hosts** タブでホストを選択し、**Add to groups** または **Remove from groups** をクリックします。1 つのホストを複数のグループに入れることができます。

グループのホストを確認するには、**Hosts** タブのフィルターでグループを選択します。一覧には、子グループのホストも含まれます。

ホストに設定した値は、グループに設定した同じ変数より優先され、グループに設定した値はインベントリより優先されます。グループを対象とするタスクは、そのグループのホストのうち、スイッチがオンのホストで実行されます。
Loading
Loading