From 3dd9e461c4078acbe6ff001b47616f891617c140 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Thu, 2 Jul 2020 16:40:17 +0200 Subject: [PATCH] Corrects yaml line break. Indentation is not allowed and breaks the tasks. --- roles/etc-git/tasks/commit.yml | 6 +++--- roles/etc-git/tasks/main.yml | 16 ++++++++-------- tasks/commit_etc_git.yml | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/roles/etc-git/tasks/commit.yml b/roles/etc-git/tasks/commit.yml index d41de38..95ab89a 100644 --- a/roles/etc-git/tasks/commit.yml +++ b/roles/etc-git/tasks/commit.yml @@ -52,9 +52,9 @@ shell: > git add -A . && git commit - -m "{{ commit_message | mandatory }}" - --author - "{{ commit_author | mandatory }} <{{ commit_email | mandatory }}>" + -m "{{ commit_message | mandatory }}" + --author + "{{ commit_author | mandatory }} <{{ commit_email | mandatory }}>" args: chdir: /etc register: etc_commit_end_run diff --git a/roles/etc-git/tasks/main.yml b/roles/etc-git/tasks/main.yml index 6b20325..cb01472 100644 --- a/roles/etc-git/tasks/main.yml +++ b/roles/etc-git/tasks/main.yml @@ -109,10 +109,10 @@ job: > who > /dev/null - || /usr/local/bin/git - --git-dir=/etc/.git - --work-tree=/etc - status --short + || /usr/local/bin/git + --git-dir=/etc/.git + --work-tree=/etc + status --short when: etc_git_monitor_status tags: - etc-git @@ -124,10 +124,10 @@ job: > who > /dev/null - || /usr/local/bin/git - --git-dir=/etc/.git - --work-tree=/etc - status --short + || /usr/local/bin/git + --git-dir=/etc/.git + --work-tree=/etc + status --short state: absent when: not etc_git_monitor_status tags: diff --git a/tasks/commit_etc_git.yml b/tasks/commit_etc_git.yml index 2925120..3330dad 100644 --- a/tasks/commit_etc_git.yml +++ b/tasks/commit_etc_git.yml @@ -14,9 +14,9 @@ shell: > git add -A . && git commit - -m "{{ commit_message | default('Ansible run') }}" - --author="{{ ansible_env.SUDO_USER | default('Root') }}" - < "{{ ansible_env.SUDO_USER | default('Root') }}@{{ general_technical_realm }}>" + -m "{{ commit_message | default('Ansible run') }}" + --author="{{ ansible_env.SUDO_USER | default('Root') }}" + "<{{ ansible_env.SUDO_USER | default('Root') }}@{{ general_technical_realm }}>" args: chdir: /etc register: etc_commit_end_evolinux