Every run that points -i at the inventory directory (e.g. the copr
pools.yaml.expand.sh helper) emitted:
[WARNING]: Failed to parse inventory with 'ini' plugin: Failed to parse inventory: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to provide a port.
Failed to parse inventory with 'ini' plugin.
<<< caused by >>>
Failed to parse inventory: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to provide a port.
Origin: /home/praiskup/projects/ansible-fedora/inventory/zzz-inventory.config
[WARNING]: Unable to parse /home/praiskup/projects/ansible-fedora/inventory/zzz-inventory.config as an inventory source
and git init in the helper printed:
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
The 'auto' inventory plugin only dispatches files ending in .yml/.yaml
to the plugin named inside them. With the '.config' extension the
constructed plugin config was never picked up; on ansible-core >= 2.19
the ini plugin tries to parse it instead and fails on the 'plugin:'
line as shown above.
After the rename 'auto' hands the file over to the constructed plugin
as originally intended (the zzz- prefix still sorts it last). Content
was adjusted to pass yamllint (document start, lowercase false,
2-space indentation) with no semantic changes; expanded pools.yaml
output verified byte-identical.
Also init the expand script's output repo with 'main' as the initial
branch to silence the git defaultBranchName advice.
Assisted-by: Claude Code (GLM 5.3, rits/zai-org/glm-5-3)
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>