christianlempa-boilerplates/ansible/installation
Christoph Schug 746aa1d06a fix: ensure the hosts definition is always defined
Ensure that the `hosts` definition is always defined, defaulting to an
empty set. Due to the lack of an Ansible inventory file this is most
likely meant to be set as an Ansible extra variable [1].

We also rename the variable named `hosts` to `my_hosts` because `hosts`
is a reserved name in Ansible. Reserved names in Ansible are for example
all class variable names of plays, roles, blocks, and tasks [2], and
`hosts` for example is used by plays [3].

[1] https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#defining-variables-at-runtime
[2] https://github.com/ansible/ansible/blob/v2.16.4/lib/ansible/vars/reserved.py#L39
[3] https://github.com/ansible/ansible/blob/v2.16.4/lib/ansible/playbook/play.py#L58
2024-03-03 15:36:11 +01:00
..
inst-k8s fix: add final newline character to text files 2024-02-22 19:06:54 +01:00
inst-core.yaml fix: ensure the hosts definition is always defined 2024-03-03 15:36:11 +01:00
inst-docker-ubuntu.yaml fix: ensure the hosts definition is always defined 2024-03-03 15:36:11 +01:00
inst-microk8s.yaml fix: ensure the hosts definition is always defined 2024-03-03 15:36:11 +01:00
inst-qemu-agent.yaml chore: consistently use Ansible FQCN in module calls 2024-02-24 11:56:25 +01:00
inst-vm-core.yaml fix: ensure the hosts definition is always defined 2024-03-03 15:36:11 +01:00
inst-wireguard.yaml fix: ensure the hosts definition is always defined 2024-03-03 15:36:11 +01:00
inst-zsh.yaml fix: ensure the hosts definition is always defined 2024-03-03 15:36:11 +01:00