mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-07 19:32:17 +00:00
9 lines
313 B
Python
9 lines
313 B
Python
from ansible.errors import AnsibleFilterError
|
|
from utils.domains.primary_domain import get_domain
|
|
|
|
|
|
def get_url(domains, application_id, protocol):
|
|
if not isinstance(protocol, str):
|
|
raise AnsibleFilterError("Protocol must be a string")
|
|
return f"{protocol}://{get_domain(domains, application_id)}"
|