ansible-edda/plays/services/valkyrie.yml

40 lines
1.3 KiB
YAML
Raw Normal View History

2022-12-12 23:49:20 +01:00
- name: "services : valkyrie"
hosts: "valkyrie"
tasks:
- name: "set service volumes"
ansible.builtin.set_fact:
services_valkyrie_volumes:
rproxy:
etc-letsencrypt:
www: {}
tags: "always"
2022-12-13 00:19:39 +01:00
- name: "user_setup"
2022-12-12 23:49:20 +01:00
ansible.builtin.include_role:
2022-12-13 00:19:39 +01:00
name: "user_setup"
2022-12-12 23:49:20 +01:00
apply:
tags:
2022-12-13 00:19:39 +01:00
- "services:user_setup"
- "services:user_setup:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:user_setup"
2022-12-12 23:49:20 +01:00
vars:
services_service_name: "rproxy"
services_service_volumes: "{{ services_valkyrie_volumes[services_service_name] }}"
services_service_user_shell: "/usr/bin/rbash"
tags: "always"
2022-12-13 00:19:39 +01:00
- name: "user_setup"
2022-12-12 23:49:20 +01:00
ansible.builtin.include_role:
2022-12-13 00:19:39 +01:00
name: "user_setup"
2022-12-12 23:49:20 +01:00
apply:
tags:
2022-12-13 00:19:39 +01:00
- "services:user_setup"
- "services:user_setup:{{ services_service_name }}"
- "services:{{ services_service_name }}"
- "services:{{ services_service_name }}:user_setup"
2022-12-12 23:49:20 +01:00
vars:
services_service_name: "www"
services_service_volumes: "{{ services_valkyrie_volumes[services_service_name] }}"
tags: "always"