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