diff --git a/backup.yml b/backup.yml index b6efbcc..7ee40d0 100644 --- a/backup.yml +++ b/backup.yml @@ -7,16 +7,14 @@ token: 86839ba0ace61ed3b28ead9d76e89701b22aa90f tasks: - - name: Example clone of a single branch - ansible.builtin.git: + - ansible.builtin.git: repo: https://{{ user }}:{{ token }}@gitea.jingoh.fr/staffadmin/backup.git dest: "{{ playbook_dir }}/backup" single_branch: yes # version: masterls delegate_to: localhost - - name: Specifying a path directly - ansible.builtin.fetch: + - ansible.builtin.fetch: src: "{{ item }}" dest: "{{ playbook_dir }}/backup/" loop: @@ -37,7 +35,7 @@ #! Semaphore - /opt/dockerapps/appdata/semaphore/config/config.json - - name: Specifying a path directly + - name: Push backup to git ansible.builtin.shell: | git config user.email "stephane.gratiasquiquandon@gmail.com" git config user.name "staffadmin"