X Tutup
Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 82a7779

Browse files
committed
Settings: Will now add a space after colon in YAML files.
- Should prevent any errors in YAML formatting issues in the future.
1 parent f892eae commit 82a7779

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

roles/settings/tasks/subtasks/migrator.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
- name: Migrator | All | Migration 01
1616
include_tasks: "migrator/all/migration_01.yml"
1717

18+
# Add single space after colon (if needed)
19+
- name: Migrator | All | Migration 02
20+
include_tasks: "migrator/all/migration_02.yml"
21+
when: (file != "backup_config.yml")
22+
1823
when: (file != "ansible.cfg")
1924

2025
- name: Migrator | Migrations for 'ansible.cfg'
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
########################################################################################
2+
# Title: Cloudbox: Settings | Migrator | All | Migration 02 #
3+
# Author(s): desimaniac #
4+
# URL: https://github.com/cloudbox/cloudbox #
5+
# -- #
6+
# Part of the Cloudbox project: https://cloudbox.works #
7+
########################################################################################
8+
# GNU General Public License v3.0 #
9+
########################################################################################
10+
---
11+
- name: Migrator | All | '{{ file }}' | Migration 02 | Add single space after colon (if needed)
12+
replace:
13+
path: "{{ playbook_dir }}/{{ file }}"
14+
regexp: '(:)[ \t]*(.*)'
15+
replace: '\1 \2'
16+
owner: "{{ cloudbox_yml.stat.uid }}"
17+
group: "{{ cloudbox_yml.stat.gid }}"
18+
mode: 0664
19+
20+
- name: Migrator | All | '{{ file }}' | Migration 02 | Re-import Variables
21+
include_vars: "{{ playbook_dir }}/{{ file }}"

0 commit comments

Comments
 (0)
X Tutup