This commit is contained in:
2024-04-01 15:32:38 +02:00
parent 7c95663dd7
commit 3a17fb5248

View File

@@ -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"