From 63506c7779a7caeaadb69b67404ed21f423bb209 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 14 Sep 2020 13:47:36 +0200 Subject: [PATCH] dont use git clone in ansible playbook --- tootbot.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tootbot.yml b/tootbot.yml index 243bdac..788021b 100644 --- a/tootbot.yml +++ b/tootbot.yml @@ -11,12 +11,18 @@ - name: create tootbot folder file: - path: /tootbot/ + path: /tootbot/source/ owner: tootbot group: tootbot mode: '0755' state: directory + - name: update python code + copy: src={{ item.src }} dest={{ item.dest }} mode='0644' + with_items: + - { src: '../files/requirements.txt', dest: '/tootbot/source/requirements.txt' } + - { src: '../files/tootbot.py', dest: '/tootbot/source/tootbot.py' } + - name: add all template files template: src=templates/run-bot.sh dest=/tootbot/run-bot.sh @@ -24,11 +30,6 @@ apt: pkg: ['python3', 'python3-pip', 'python3-setuptools'] - - name: clone/update git repo - git: - repo: 'https://github.com/Nutomic/tootbot.git' - dest: /tootbot/source/ - - name: install python requirements raw: cd /tootbot/source/ && sudo -H -u tootbot pip3 install -r requirements.txt args: