rename .yaml files to .yml for consistency
This commit is contained in:
@@ -369,44 +369,44 @@ app_extra_templates:
|
|||||||
The role is organized into logical task files for selective execution:
|
The role is organized into logical task files for selective execution:
|
||||||
|
|
||||||
```
|
```
|
||||||
├── setup.yaml # Validation, directories, and templates
|
├── setup.yml # Validation, directories, and templates
|
||||||
├── restore.yaml # Backup restoration logic
|
├── restore.yml # Backup restoration logic
|
||||||
├── deploy.yaml # Docker Compose deployment and startup
|
├── deploy.yml # Docker Compose deployment and startup
|
||||||
├── health_check.yaml # Health monitoring and verification
|
├── health_check.yml # Health monitoring and verification
|
||||||
├── backup.yaml # Backup creation and management
|
├── backup.yml # Backup creation and management
|
||||||
├── update.yaml # Container update and image pulling
|
├── update.yml # Container update and image pulling
|
||||||
└── manage_compose.yaml # Docker Compose lifecycle management
|
└── manage_compose.yml # Docker Compose lifecycle management
|
||||||
```
|
```
|
||||||
|
|
||||||
### Task Execution Flow
|
### Task Execution Flow
|
||||||
|
|
||||||
1. **Setup** (`setup.yaml`) - [setup, deploy]
|
1. **Setup** (`setup.yml`) - [setup, deploy]
|
||||||
- Docker/Compose validation
|
- Docker/Compose validation
|
||||||
- Variable validation and security checks
|
- Variable validation and security checks
|
||||||
- Directory creation
|
- Directory creation
|
||||||
- Additional template deployment
|
- Additional template deployment
|
||||||
|
|
||||||
2. **Restore** (`restore.yaml`) - [restore, never]
|
2. **Restore** (`restore.yml`) - [restore, never]
|
||||||
- Backup file selection and validation
|
- Backup file selection and validation
|
||||||
- Service stopping
|
- Service stopping
|
||||||
- Archive extraction
|
- Archive extraction
|
||||||
- Service restart
|
- Service restart
|
||||||
|
|
||||||
3. **Deploy** (`deploy.yaml`) - [deploy]
|
3. **Deploy** (`deploy.yml`) - [deploy]
|
||||||
- Docker Compose file creation
|
- Docker Compose file creation
|
||||||
- Container startup and management
|
- Container startup and management
|
||||||
|
|
||||||
4. **Health Check** (`health_check.yaml`) - [deploy, healthcheck]
|
4. **Health Check** (`health_check.yml`) - [deploy, healthcheck]
|
||||||
- Service health verification
|
- Service health verification
|
||||||
- Endpoint monitoring
|
- Endpoint monitoring
|
||||||
|
|
||||||
5. **Backup** (`backup.yaml`) - [backup, never]
|
5. **Backup** (`backup.yml`) - [backup, never]
|
||||||
- Service stopping (optional)
|
- Service stopping (optional)
|
||||||
- Archive creation
|
- Archive creation
|
||||||
- Backup copying and cleanup
|
- Backup copying and cleanup
|
||||||
- Service restart
|
- Service restart
|
||||||
|
|
||||||
6. **Update** (`update.yaml`) - [update, never]
|
6. **Update** (`update.yml`) - [update, never]
|
||||||
- Service stopping
|
- Service stopping
|
||||||
- Image pulling
|
- Image pulling
|
||||||
- Container recreation
|
- Container recreation
|
||||||
|
|||||||
@@ -34,6 +34,6 @@
|
|||||||
when: _compose_type == 'content'
|
when: _compose_type == 'content'
|
||||||
register: compose_file
|
register: compose_file
|
||||||
|
|
||||||
- ansible.builtin.include_tasks: manage_compose.yaml
|
- ansible.builtin.include_tasks: manage_compose.yml
|
||||||
when: app_compose_start | default(true)
|
when: app_compose_start | default(true)
|
||||||
tags: [deploy]
|
tags: [deploy]
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- ansible.builtin.include_tasks: setup.yaml
|
|
||||||
tags: [setup, deploy]
|
|
||||||
- ansible.builtin.include_tasks: restore.yaml
|
|
||||||
tags: [restore, never]
|
|
||||||
- ansible.builtin.include_tasks: deploy.yaml
|
|
||||||
tags: [deploy]
|
|
||||||
- ansible.builtin.include_tasks: health_check.yaml
|
|
||||||
tags: [deploy, healthcheck]
|
|
||||||
- ansible.builtin.include_tasks: backup.yaml
|
|
||||||
tags: [backup, never]
|
|
||||||
- ansible.builtin.include_tasks: update.yaml
|
|
||||||
tags: [update, never]
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- ansible.builtin.include_tasks: setup.yml
|
||||||
|
tags: [setup, deploy]
|
||||||
|
- ansible.builtin.include_tasks: restore.yml
|
||||||
|
tags: [restore, never]
|
||||||
|
- ansible.builtin.include_tasks: deploy.yml
|
||||||
|
tags: [deploy]
|
||||||
|
- ansible.builtin.include_tasks: health_check.yml
|
||||||
|
tags: [deploy, healthcheck]
|
||||||
|
- ansible.builtin.include_tasks: backup.yml
|
||||||
|
tags: [backup, never]
|
||||||
|
- ansible.builtin.include_tasks: update.yml
|
||||||
|
tags: [update, never]
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
register: update_restart
|
register: update_restart
|
||||||
|
|
||||||
- name: Verify application health after update
|
- name: Verify application health after update
|
||||||
ansible.builtin.include_tasks: health_check.yaml
|
ansible.builtin.include_tasks: health_check.yml
|
||||||
when: app_health_check | default(true)
|
when: app_health_check | default(true)
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
Reference in New Issue
Block a user