Nix hostname for containers; v1.0.27
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Chris Hammer 2024-03-01 10:46:12 -05:00
parent f7e878ce39
commit d737b08719
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace: jchristianh
name: baseos
# The version of the collection. Must be compatible with semantic versioning
version: 1.0.26
version: 1.0.27
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md

View File

@ -1,6 +1,8 @@
---
- name: Use hostname module to set hostname, or failback to command module
when:
- not ansible_virtualization_type | regex_search("docker|podman|container")
block:
- name: Set hostname for host using hostname module
ansible.builtin.hostname: