Simplify deploy-config.yml - use defaults for owner/group/mode
This commit is contained in:
parent
bdfbf40a75
commit
4084aaea4c
@ -1,42 +1,29 @@
|
|||||||
---
|
---
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Deploy Configuration
|
# Deploy Configuration
|
||||||
# Purpose: Centralized list of files and folders to deploy to target servers
|
# Purpose: Centralized list of files to deploy to target servers
|
||||||
# Usage: Referenced by apply.yml and drift-check.yml playbooks
|
# Usage: Referenced by apply.yml and drift-check.yml playbooks
|
||||||
|
#
|
||||||
|
# To add a new file:
|
||||||
|
# 1. Create the file in the repo (e.g., files/myfile.conf)
|
||||||
|
# 2. Add an entry below with: name, src, dest
|
||||||
|
# 3. Commit and push - pipeline handles the rest!
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
# List of files to deploy
|
# All files use the same owner/group (root) and permissions (0644)
|
||||||
# Each item specifies:
|
# Defaults apply to all items - override per-file if needed
|
||||||
# - src: source path (relative to repo root)
|
|
||||||
# - dest: destination path on target servers
|
|
||||||
# - owner: file owner (default: root)
|
|
||||||
# - group: file group (default: root)
|
|
||||||
# - mode: file permissions (default: 0644)
|
|
||||||
# - recursive: if True, use recursive copy for directories (optional)
|
|
||||||
# =============================================================================
|
|
||||||
|
|
||||||
deploy_items:
|
deploy_items:
|
||||||
- name: "dvir.txt"
|
- name: "dvir.txt"
|
||||||
src: "files/dvir.txt"
|
src: "files/dvir.txt"
|
||||||
dest: "/tmp/dvir.txt"
|
dest: "/tmp/dvir.txt"
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0644"
|
|
||||||
description: "Main configuration file"
|
|
||||||
|
|
||||||
# Example: add more files below
|
# Example: To add another file, just uncomment and update the paths:
|
||||||
# - name: "example.conf"
|
# - name: "myapp.conf"
|
||||||
# src: "files/example.conf"
|
# src: "files/myapp.conf"
|
||||||
# dest: "/etc/example/example.conf"
|
# dest: "/etc/myapp/myapp.conf"
|
||||||
# owner: root
|
|
||||||
# group: root
|
|
||||||
# mode: "0644"
|
|
||||||
#
|
#
|
||||||
# Example: recursive folder deployment
|
# - name: "rsyslog.conf"
|
||||||
# - name: "config_folder"
|
# src: "files/rsyslog.conf"
|
||||||
# src: "files/config/"
|
# dest: "/etc/rsyslog.d/99-custom.conf"
|
||||||
# dest: "/etc/myapp/config/"
|
|
||||||
# owner: root
|
|
||||||
# group: root
|
|
||||||
# mode: "0755"
|
|
||||||
# recursive: true
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user