fixes/additional infos
This commit is contained in:
parent
adb75b4e22
commit
58c2895238
@ -13,14 +13,14 @@
|
|||||||
|
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: 'https://gitea.ds9.dedyn.io/olli/dabo.git'
|
repo: 'https://github.com/egabosh/dabo.git'
|
||||||
dest: /home/docker/dabo.{{inventory_hostname}}
|
dest: /home/docker/dabo.{{inventory_hostname}}
|
||||||
force: true
|
force: true
|
||||||
notify: Restart dabo
|
notify: Restart dabo
|
||||||
|
|
||||||
- name: /home/docker/dabo.{{inventory_hostname}}/genpw.sh (generate Random PW)
|
- name: /home/docker/dabo.{{inventory_hostname}}/initiate.sh
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /home/docker/dabo.{{inventory_hostname}}/genpw.sh
|
path: /home/docker/dabo.{{inventory_hostname}}/initiate.sh
|
||||||
create: yes
|
create: yes
|
||||||
mode: 0550
|
mode: 0550
|
||||||
owner: root
|
owner: root
|
||||||
@ -35,16 +35,16 @@
|
|||||||
ssh-keygen -f home/.ssh/id_ed25519 -N "" -t ed25519 >/dev/null
|
ssh-keygen -f home/.ssh/id_ed25519 -N "" -t ed25519 >/dev/null
|
||||||
chmod 700 home/.ssh
|
chmod 700 home/.ssh
|
||||||
fi
|
fi
|
||||||
|
mkdir -p data/botdata strategies
|
||||||
#[ -f watch-assets.csv ] || cp dabo/watch-assets.csv watch-assets.csv
|
chown -R 10000:10000 dabo data home strategies dabo-bot.conf
|
||||||
chown -R 10000:10000 dabo data home strategies dabo-bot.conf #watch-assets.csv
|
|
||||||
|
|
||||||
backup: yes
|
backup: yes
|
||||||
validate: /bin/bash -n %s
|
validate: /bin/bash -n %s
|
||||||
|
notify: run initiate.sh
|
||||||
|
|
||||||
- name: /home/docker/dabo.{{inventory_hostname}}/genpw.sh shebang
|
- name: /home/docker/dabo.{{inventory_hostname}}/initiate.sh shebang
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /home/docker/dabo.{{inventory_hostname}}/genpw.sh
|
path: /home/docker/dabo.{{inventory_hostname}}/initiate.sh
|
||||||
insertbefore: BOF
|
insertbefore: BOF
|
||||||
line: "#!/bin/bash -e"
|
line: "#!/bin/bash -e"
|
||||||
|
|
||||||
@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#- name: Get crypted PW
|
#- name: Get crypted PW
|
||||||
# shell: bash /home/docker/dabo.{{inventory_hostname}}/genpw.sh
|
# shell: bash /home/docker/dabo.{{inventory_hostname}}/initiate.sh
|
||||||
# register: cryptpw
|
# register: cryptpw
|
||||||
# changed_when: false
|
# changed_when: false
|
||||||
|
|
||||||
@ -124,8 +124,8 @@
|
|||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
|
||||||
- name: run genpw.sh
|
- name: run initiate.sh
|
||||||
ansible.builtin.shell: ./genpw.sh
|
ansible.builtin.shell: ./initiate.sh
|
||||||
args:
|
args:
|
||||||
chdir: /home/docker/dabo.{{inventory_hostname}}
|
chdir: /home/docker/dabo.{{inventory_hostname}}
|
||||||
notify: Restart dabo
|
notify: Restart dabo
|
||||||
@ -134,3 +134,4 @@
|
|||||||
ansible.builtin.shell: docker compose up -d --force-recreate
|
ansible.builtin.shell: docker compose up -d --force-recreate
|
||||||
args:
|
args:
|
||||||
chdir: /home/docker/dabo.{{inventory_hostname}}
|
chdir: /home/docker/dabo.{{inventory_hostname}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user