File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,24 @@ Role Variables
27
27
| rw_commit | ` master ` | Specific commit to be used during the checkout process. |
28
28
| rw_env | ` production ` | Specify if we are running in production or development mode. |
29
29
| rw_src | ` "{{ rw_home }}/src" ` | Dir to clone the rubywarden source to. |
30
+ | rw_keepass | ` false ` | Install gems needed for importing keepass version 1 databases (version 2 is not supported)|
31
+
32
+ Running rubywarden tool scripts
33
+ -------------------------------
34
+
35
+ The rubywarden scripts are installed in ` /var/rubywarden/src/tools/ ` .
36
+
37
+ To run the scripts you need to set the proper environment so that the ruby gems installed into the local directory work correctly.
38
+
39
+ For example, to import a version 1 keepass database:
40
+
41
+ ```
42
+ RUBYWARDEN_ENV=production \
43
+ PATH=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/var/rubywarden/rb/bin \
44
+ HOME=/var/rubywarden \
45
+ GEM_HOME=/var/rubywarden/rb/ruby/2.6 \
46
+ ruby26 tools/keepass_import.rb -f /path/to/keepass.kbdx -u <bw-user>@domain.tld
47
+ ```
30
48
31
49
Example Playbook
32
50
----------------
Original file line number Diff line number Diff line change @@ -10,5 +10,6 @@ rw_commit: master
10
10
rw_env : production
11
11
rw_home : /var/rubywarden
12
12
rw_src : " {{ rw_home }}/src"
13
+ rw_keepass : False
13
14
14
15
rw_ruby_slug : " {{ rw_ruby | regex_replace('\\ .', '') }}"
Original file line number Diff line number Diff line change 40
40
gem_path : " {{ rw_home }}/rb"
41
41
binstub_directory : " {{ rw_home }}/rb/bin"
42
42
chdir : " {{ rw_src }}"
43
+ extra_args : " {% if rw_keepass %}--with keepass{% endif %}"
43
44
state : present
44
45
45
46
- name : make the {{ rw_env }} db dir
You can’t perform that action at this time.
0 commit comments