namespace
A name prefix that groups related names under one owner, so the same short name from different owners does not collide.
In more detail
Because the full name includes the namespace, different owners can reuse the same short name safely. In C#, a namespace such as System.Collections.Generic groups related types, and in Ansible a collection's namespace is the first part of its name, as amazon in amazon.aws. Other systems, such as Kubernetes and the Linux kernel, use the same word for their own kinds of naming scope.
Related terms
- Ansible collection — A distribution package of Ansible content, such as modules, plugins, roles and documentation, published under a namespace.
- fully qualified collection name — The full name of a module, plugin or role including its collection, such as ansible.builtin.copy rather than just copy.
- fact — A variable Ansible discovers about a host itself, such as its operating system, host name, memory or network addresses.
- Ansible Galaxy — The public online hub for sharing Ansible roles and collections, and the ansible-galaxy command that installs from it.
- using directive — A line such as using System.Text; that lets a file refer to types in a namespace by their short names.
- file-scoped namespace — A namespace declaration ending in a semicolon, such as namespace Catalog.Pricing;, that applies to the whole file without braces.
Taught in
- Gathering Facts — Ansible Configuration Management at Scale
- Writing A Role — Ansible Configuration Management at Scale
- Using Collections — Ansible Configuration Management at Scale
- Staging Is Gone: Desired State, Declarations And The State Store — Certified GitOps Associate (CGOA) Exam Prep
- Terminology Sprint: One Incident, Nine Terms — Certified GitOps Associate (CGOA) Exam Prep
- Patterns Sprint: Eight Needs, One Pattern Each — Certified GitOps Associate (CGOA) Exam Prep
- A Bucket Nobody Wrote Down: State Stores Beyond Git — Certified GitOps Associate (CGOA) Exam Prep
- A Bake-Off With One Rule: Argo CD And Flux — Certified GitOps Associate (CGOA) Exam Prep
- A Rollback Nobody Heard: Notifications, Observability And CI — Certified GitOps Associate (CGOA) Exam Prep
- The Evening Before: Final Review — Certified GitOps Associate (CGOA) Exam Prep
- Records, Pattern Matching, and Modern C# — Modern .NET Core, C# & Enterprise Microservices
- The Options Pattern: Strongly Typed Configuration — Modern .NET Core, C# & Enterprise Microservices
- Anatomy Of A Playbook: Plays, Tasks And Modules — RHCE in Ansible (EX294): Automate Red Hat Systems
- Finding Modules In Collections: ansible-doc And navigator — RHCE in Ansible (EX294): Automate Red Hat Systems
- requirements.yml: Installing Roles And Collections — RHCE in Ansible (EX294): Automate Red Hat Systems