File tree 3 files changed +19
-11
lines changed
3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ - name : Ensure working directory exists.
3
+ file :
4
+ path : " {{ item.working_dir }}"
5
+ state : directory
6
+ owner : " {{ php_telegram_bot_websrv_user }}"
7
+ group : " {{ php_telegram_bot_websrv_user }}"
8
+ with_items : " {{ php_telegram_bot_bots }}"
9
+
10
+ - name : Ensure public folder for simple bots exists.
11
+ file :
12
+ path : " {{ item.working_dir }}/public"
13
+ state : directory
14
+ owner : " {{ php_telegram_bot_websrv_user }}"
15
+ group : " {{ php_telegram_bot_websrv_user }}"
16
+ with_items : " {{ php_telegram_bot_bots }}"
17
+ when : item.project_repo is not defined and item.manager_path is not defined
18
+
2
19
- name : Fetch all project bot repositories.
3
20
become : yes
4
21
become_user : " {{ php_telegram_bot_websrv_user }}"
11
28
when : item.project_repo is defined
12
29
ignore_errors : yes
13
30
14
- - name : Ensure public folder for simple bots exists.
15
- file :
16
- path : " {{ item.working_dir }}/public"
17
- state : directory
18
- owner : " {{ php_telegram_bot_websrv_user }}"
19
- group : " {{ php_telegram_bot_websrv_user }}"
20
- with_items : " {{ php_telegram_bot_bots }}"
21
- when : item.project_repo is not defined and item.manager_path is not defined
22
-
23
31
- name : Create all simple bot projects.
24
32
become : yes
25
33
become_user : " {{ php_telegram_bot_websrv_user }}"
Original file line number Diff line number Diff line change 6
6
with_items : " {{ php_telegram_bot_bots_installed.results }}"
7
7
when : item.item.webhook is defined
8
8
register : php_telegram_bot_set_webhook
9
- changed_when : php_telegram_bot_set_webhook.content == "Webhook is already deleted\nWebhook was set\n"
9
+ changed_when : php_telegram_bot_set_webhook.content is defined and php_telegram_bot_set_webhook.content == "Webhook is already deleted\nWebhook was set\n"
10
10
ignore_errors : yes
Original file line number Diff line number Diff line change 3
3
use Dotenv\Dotenv;
4
4
use Longman\TelegramBot\Exception;
5
5
use Longman\TelegramBot\TelegramLog;
6
- use NPM \TelegramBotManager\BotManager;
6
+ use TelegramBot \TelegramBotManager\BotManager;
7
7
8
8
// Composer autoloader.
9
9
require_once __DIR__ . '/../vendor/autoload.php';
You can’t perform that action at this time.
0 commit comments