ansible-edda/playbooks/tasks/services/service/00-vars.yml

26 lines
894 B
YAML

- name: Set service variables
set_fact:
service_user_name: "pod-{{ service_name }}"
service_iface_name: "veth-{{ service_name }}"
service_bridge_address: "{{ services[service_name].address }}"
service_changed: false
- name: Set service variables
set_fact:
service_home: "/var/lib/{{ ansible_hostname }}/home/{{ service_user_name }}"
- name: Set service variables
set_fact:
local_service_home: "./filesystem/{{ ansible_hostname }}/{{ service_home }}"
- name: Print service variables
debug:
msg:
- "service_name: {{ service_name }}"
- "service_user_name: {{ service_user_name }}"
- "service_iface_name: {{ service_iface_name }}"
- "service_bridge_address: {{ service_bridge_address }}"
- "service_changed: {{ service_changed }}"
- "service_home: {{ service_home }}"
- "local_service_home: {{ local_service_home }}"