diff --git a/ansible/deploy-config.yml b/ansible/deploy-config.yml index 5404158..aec76f4 100644 --- a/ansible/deploy-config.yml +++ b/ansible/deploy-config.yml @@ -1,42 +1,29 @@ --- # ============================================================================= # 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 +# +# 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 -# Each item specifies: -# - 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) -# ============================================================================= +# All files use the same owner/group (root) and permissions (0644) +# Defaults apply to all items - override per-file if needed deploy_items: - name: "dvir.txt" src: "files/dvir.txt" dest: "/tmp/dvir.txt" - owner: root - group: root - mode: "0644" - description: "Main configuration file" - # Example: add more files below - # - name: "example.conf" - # src: "files/example.conf" - # dest: "/etc/example/example.conf" - # owner: root - # group: root - # mode: "0644" + # Example: To add another file, just uncomment and update the paths: + # - name: "myapp.conf" + # src: "files/myapp.conf" + # dest: "/etc/myapp/myapp.conf" # - # Example: recursive folder deployment - # - name: "config_folder" - # src: "files/config/" - # dest: "/etc/myapp/config/" - # owner: root - # group: root - # mode: "0755" - # recursive: true + # - name: "rsyslog.conf" + # src: "files/rsyslog.conf" + # dest: "/etc/rsyslog.d/99-custom.conf" +