diff --git a/anta/cli/get/commands.py b/anta/cli/get/commands.py index cbe67acf5..56ec5ca92 100644 --- a/anta/cli/get/commands.py +++ b/anta/cli/get/commands.py @@ -80,7 +80,6 @@ def from_cvp(inventory_directory: str, cvp_ip: str, cvp_username: str, cvp_passw @click.option("--ansible-group", "-g", help="Ansible group to filter", type=str, required=False, default="all") @click.option( "--ansible-inventory", - "-i", default=None, help="Path to your ansible inventory file to read", type=click.Path(file_okay=True, dir_okay=False, exists=True, path_type=Path), diff --git a/docs/cli/inv-from-ansible.md b/docs/cli/inv-from-ansible.md index afa6ee6d3..c6808512d 100644 --- a/docs/cli/inv-from-ansible.md +++ b/docs/cli/inv-from-ansible.md @@ -17,14 +17,12 @@ Usage: anta get from-ansible [OPTIONS] Build ANTA inventory from an ansible inventory YAML file Options: - -g, --ansible-group TEXT Ansible group to filter - -i, --ansible-inventory FILE Path to your ansible inventory file to read - -o, --output FILE Path to save inventory file. If not - configured, use anta inventory file - --overwrite Confirm script can overwrite existing - inventory file [env var: - ANTA_GET_FROM_ANSIBLE_OVERWRITE] - --help Show this message and exit. + -g, --ansible-group TEXT Ansible group to filter + --ansible-inventory FILENAME + Path to your ansible inventory file to read + -o, --output FILENAME Path to save inventory file + -d, --inventory-directory PATH Directory to save inventory file + --help Show this message and exit. ``` The output is an inventory where the name of the container is added as a tag for each host: