Skip to content

Commit d3f7010

Browse files
committed
Version 0.2.0
Make manager.php a template as well, to allow direct variable insertion.
1 parent fb20a8f commit d3f7010

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
3+
4+
Exclamation symbols (:exclamation:) note something of importance e.g. breaking changes.
5+
6+
## [Unreleased]
7+
### Added
8+
### Changed
9+
### Deprecated
10+
### Removed
11+
### Fixed
12+
### Security
13+
14+
## [0.2.0] - 2017-05-09
15+
### Added
16+
- Changelog.
17+
### Changed
18+
- :exclamation: Default `manager.php` is now loaded from a template as well.
19+
20+
## [0.1.0] - 2016-08-20
21+
### Added
22+
- First minor version that contains the basic functionality.

tasks/install.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
composer:
2727
working_dir: "{{ item.working_dir }}"
2828
command: require
29-
arguments: "{{ php_telegram_bot_composer_package }}" "{{ php_telegram_bot_composer_version }}"
29+
arguments: "{{ [php_telegram_bot_composer_package, php_telegram_bot_composer_version] | join(' ') }}"
3030
with_items: "{{ php_telegram_bot_bots }}"
3131
when: item.project_repo is not defined
3232

@@ -40,8 +40,8 @@
4040
register: php_telegram_bot_bots_installed
4141

4242
- name: Copy manager.php for all bots.
43-
copy:
44-
src: "{{ item.manager_src | default('manager.default.php') }}"
43+
template:
44+
src: "{{ item.manager_src | default('manager.default.php.j2') }}"
4545
dest: "{{ item.manager_path | default(item.working_dir + '/public/manager.php') }}"
4646
owner: "{{ php_telegram_bot_websrv_user }}"
4747
group: "{{ php_telegram_bot_websrv_user }}"
File renamed without changes.

0 commit comments

Comments
 (0)