diff --git a/dabo-ansible.yml b/dabo-ansible.yml index c870a96..63ed567 100644 --- a/dabo-ansible.yml +++ b/dabo-ansible.yml @@ -13,14 +13,14 @@ - name: Git checkout 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}} force: true notify: Restart dabo - - name: /home/docker/dabo.{{inventory_hostname}}/genpw.sh (generate Random PW) + - name: /home/docker/dabo.{{inventory_hostname}}/initiate.sh blockinfile: - path: /home/docker/dabo.{{inventory_hostname}}/genpw.sh + path: /home/docker/dabo.{{inventory_hostname}}/initiate.sh create: yes mode: 0550 owner: root @@ -35,16 +35,16 @@ ssh-keygen -f home/.ssh/id_ed25519 -N "" -t ed25519 >/dev/null chmod 700 home/.ssh fi - - #[ -f watch-assets.csv ] || cp dabo/watch-assets.csv watch-assets.csv - chown -R 10000:10000 dabo data home strategies dabo-bot.conf #watch-assets.csv + mkdir -p data/botdata strategies + chown -R 10000:10000 dabo data home strategies dabo-bot.conf backup: yes 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: - path: /home/docker/dabo.{{inventory_hostname}}/genpw.sh + path: /home/docker/dabo.{{inventory_hostname}}/initiate.sh insertbefore: BOF line: "#!/bin/bash -e" @@ -66,7 +66,7 @@ #- name: Get crypted PW - # shell: bash /home/docker/dabo.{{inventory_hostname}}/genpw.sh + # shell: bash /home/docker/dabo.{{inventory_hostname}}/initiate.sh # register: cryptpw # changed_when: false @@ -124,8 +124,8 @@ handlers: - - name: run genpw.sh - ansible.builtin.shell: ./genpw.sh + - name: run initiate.sh + ansible.builtin.shell: ./initiate.sh args: chdir: /home/docker/dabo.{{inventory_hostname}} notify: Restart dabo @@ -134,3 +134,4 @@ ansible.builtin.shell: docker compose up -d --force-recreate args: chdir: /home/docker/dabo.{{inventory_hostname}} +