Skip to content

Commit 7eb2539

Browse files
committed
Figure out the SSH user
1 parent 3da7fa0 commit 7eb2539

File tree

3 files changed

+3
-4
lines changed
  • inventory/vagrant/group_vars
  • roles/internal

3 files changed

+3
-4
lines changed

inventory/vagrant/group_vars/alpaca.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
# Comment in to build Alpaca from source
3+
# Comment out to download Alpaca from Maven
44
alpaca_from_source: yes
55
alpaca_version: 2.x
66
alpaca_clone_directory: /opt/alpaca

roles/internal/Islandora-Devops.alpaca/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ alpaca_version: 2.0.0
55
alpaca_clone_directory: /opt/alpaca
66
alpaca_jar_path: "{{ alpaca_clone_directory }}/islandora-alpaca-app-{{ alpaca_version }}-all.jar"
77

8-
alpaca_user: "{{ ansible_ssh_user }}"
9-
alpaca_group: "{{ ansible_ssh_user }}"
8+
alpaca_user: "{{ ansible_ssh_user | default(ansible_env.SUDO_USER, true) | default(ansible_env.USER, true) | default(ansible_user_id) }}"
9+
alpaca_group: "{{ ansible_ssh_user | default(ansible_env.SUDO_USER, true) | default(ansible_env.USER, true) | default(ansible_user_id) }}"
1010

1111
alpaca_log_level: INFO
1212

roles/internal/Islandora-Devops.tomcat8/tasks/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
- tomcat9-install
1313

1414
- include: config.yml
15-
static: no
1615
tags:
1716
- tomcat9
1817
- tomcat9-config

0 commit comments

Comments
 (0)