Template or copy configuration
- Create ormconfig.json
- Change to using a dictionary for environmental variables
Change-Id: Ic02e813040f5a2b3d1f9d411970365a8f7e9955e
diff --git a/tasks/main.yml b/tasks/main.yml
index 73e55e5..9700ccd 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -42,6 +42,26 @@
notify:
- "restart-timesheetsdb"
+- name: Create ormconfig.json file from template
+ template:
+ src: "ormconfig.json.j2"
+ dest: "{{ timesheets_dir }}/db/ormconfig.json"
+ owner: "root"
+ group: "{{ timesheets_groupname }}"
+ mode: "0640"
+ notify:
+ - "restart-timesheetsdb"
+
+- name: Copy the the Docusign key
+ copy:
+ src: "docusignPrivate.key"
+ dest: "{{ timesheets_dir }}/db/docusignPrivate.key"
+ owner: "root"
+ group: "{{ timesheets_groupname }}"
+ mode: "0640"
+ notify:
+ - "restart-timesheetsdb"
+
- name: Install timesheetsdb
become: true
become_user: "{{ timesheets_username }}"