[Add backup]
This commit is contained in:
19
backup.yml
19
backup.yml
@@ -9,21 +9,15 @@
|
|||||||
bw_client_secret: "{{ lookup('env', 'bw_client_secret') }}"
|
bw_client_secret: "{{ lookup('env', 'bw_client_secret') }}"
|
||||||
bw_client_password: "{{ lookup('env', 'bw_client_password') }}"
|
bw_client_password: "{{ lookup('env', 'bw_client_password') }}"
|
||||||
bw_client_id: "{{ lookup('env', 'bw_client_id') }}"
|
bw_client_id: "{{ lookup('env', 'bw_client_id') }}"
|
||||||
|
user_mail: "{{ lookup('env', 'mail') }}"
|
||||||
|
user: "{{ lookup('env', 'username') }}"
|
||||||
# Token full access gitea
|
# Token full access gitea
|
||||||
bw_requested_password_id: 34fe88a0-e9f0-42d1-9433-f75787327f4e
|
bw_requested_password_id: 34fe88a0-e9f0-42d1-9433-f75787327f4e
|
||||||
dockerapps_path: /opt/dockerapps
|
dockerapps_path: /opt/dockerapps
|
||||||
gitea_conf: /appdata/gitea/gitea/
|
gitea_conf: /appdata/gitea/gitea/
|
||||||
gitea_db: /appdata/gitea/gitea-db/gitea-db-pg.sql
|
gitea_db: /appdata/gitea/gitea-db/gitea-db-pg.sql
|
||||||
user: sgratias
|
# user: sgratias
|
||||||
user_mail: stephane.gratiasquiquandon@gmail.com
|
# user_mail: stephane.gratiasquiquandon@gmail.com
|
||||||
token: !vault |
|
|
||||||
$ANSIBLE_VAULT;1.2;AES256;prod
|
|
||||||
30383538646164373137616166636632353964373362323735626239656337306139616265323138
|
|
||||||
3834383331316466653565323632616163353964643637660a363262383461363234363738613034
|
|
||||||
64383132373061653337313365333734646635396635313133613861303730303163383764653664
|
|
||||||
6537633761353939330a356236623265383931643530316430303938303735306536343163323163
|
|
||||||
62636236346362663036343765363830383738623563613161373637383239623134376163653662
|
|
||||||
3565333032326133326232326633386332633639373862313463
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
############
|
############
|
||||||
@@ -224,8 +218,8 @@
|
|||||||
# chdir: "{{ dockerapps_path }}"
|
# chdir: "{{ dockerapps_path }}"
|
||||||
register: result_gitea_db
|
register: result_gitea_db
|
||||||
|
|
||||||
- ansible.builtin.debug:
|
# - ansible.builtin.debug:
|
||||||
var: result_gitea_db.stdout
|
# var: result_gitea_db.stdout
|
||||||
|
|
||||||
- name: Copy file with owner and permissions
|
- name: Copy file with owner and permissions
|
||||||
become: true
|
become: true
|
||||||
@@ -242,7 +236,6 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: logout bw
|
- name: logout bw
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: bw logout
|
cmd: bw logout
|
||||||
|
|||||||
Reference in New Issue
Block a user