From ca3fc23777c24853b5c44ea185c410bf33d0c544 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 26 Sep 2017 11:23:26 +0200 Subject: [PATCH] Add file before commit and skip CI --- tasks/collect_config/gitcomposer.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tasks/collect_config/gitcomposer.yml b/tasks/collect_config/gitcomposer.yml index 86ad5d7..1b3a13f 100644 --- a/tasks/collect_config/gitcomposer.yml +++ b/tasks/collect_config/gitcomposer.yml @@ -10,22 +10,17 @@ mode: 'u+rwX,g+rwX,o+rX' recurse: yes -# TODO: Commit changed files individually -- name: "Commit files" +- name: "Commit and push files" shell: 'git {{ item }}' args: chdir: '{{ webRoot }}' become: false with_items: - - 'config user.email "test@example.com"' + - 'add config/*' + - 'config user.email "deployment@lakedrops.com"' - 'config user.name "Auto Config Export"' - - 'commit -am "Config change on server"' - -- name: "Push upstream" - shell: 'git push' - args: - chdir: '{{ webRoot }}' - become: false + - 'commit -am "[ci skip] Config change on server"' + - 'push' - name: "File Modes and Ownership for Repository" file: -- GitLab