removed cobald_facts module

This commit is contained in:
2021-06-21 21:34:24 +02:00
parent e78e184375
commit f83801cb62
3 changed files with 11 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
- block:
- docker_container_info:
name: "{{ container_name | mandatory }}"
register: cobald_container_info
- set_fact:
cobald_container_hostname: |-
{{cobald_container_info.container.Config.Hostname | default('cobald-'+
lookup('password', '/dev/null chars=ascii_lowercase length=6')) }}
when: cobald_container_hostname is not defined