From 4dc63bd6ab4f31621e902d3c12b2f185e67e5e37 Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 18 Dec 2024 15:14:39 +0100 Subject: [PATCH] autoupdate --- dabo-ansible.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dabo-ansible.yml b/dabo-ansible.yml index 63ed567..d8a3e1e 100644 --- a/dabo-ansible.yml +++ b/dabo-ansible.yml @@ -121,6 +121,21 @@ chdir: /home/docker/dabo.{{inventory_hostname}} creates: /home/docker/dabo.{{inventory_hostname}}/data/botdata/MARKET_PERFORMANCE + - name: autoupdate dabo-bot + blockinfile: + path: /usr/local/sbin/autoupdate.d/dabo.update + create: yes + mode: 0550 + owner: root + group: root + marker: "# {mark} ANSIBLE MANAGED BLOCK" + block: | + g_echo_ok "Dabo update" + rm -f /tmp/dabo-ansible.yml + wget https://raw.githubusercontent.com/egabosh/dabo/refs/heads/main/dabo-ansible.yml -O /tmp/dabo-ansible.yml + ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) /tmp/dabo-ansible.yml + backup: yes + validate: /bin/bash -n %s handlers: