Fix ansible-lint errors
This commit is contained in:
parent
503bd8b396
commit
b098704e23
10 changed files with 21 additions and 26 deletions
3
templates/new_role/handlers/main.yml
Normal file
3
templates/new_role/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Restart service {{ role_name }}
|
||||
ansible.builtin.include_tasks: tasks/restart-service.yml
|
12
templates/new_role/tasks/main.yml
Normal file
12
templates/new_role/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ role_name }}
|
||||
vars:
|
||||
svc: "{{ NAME_svc }}"
|
||||
env: "{{ NAME_env }}"
|
||||
compose: "{{ NAME_compose }}"
|
||||
block:
|
||||
- name: Import tasks to deploy common service
|
||||
ansible.builtin.import_tasks: tasks/deploy-common-service.yml
|
16
templates/new_role/vars/main.yml
Normal file
16
templates/new_role/vars/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
NAME_svc:
|
||||
domain: "{{ all_services | service_get_domain(role_name) }}"
|
||||
port: 80
|
||||
|
||||
NAME_env:
|
||||
EXAMPLE: value
|
||||
|
||||
NAME_compose:
|
||||
watchtower: update
|
||||
image:
|
||||
volumes:
|
||||
- data:/data
|
||||
file:
|
||||
volumes:
|
||||
data:
|
Loading…
Add table
Add a link
Reference in a new issue