Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit aa45464

Browse files
committed
Add ssh_home var as default pwd for SSH.
1 parent 724184d commit aa45464

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

example.config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,4 @@ selenium_version: 2.46.0
271271
# Other configuration.
272272
dashboard_install_dir: /var/www/dashboard
273273
known_hosts_path: ~/.ssh/known_hosts
274+
ssh_home: "{{ drupal_core_path }}"

provisioning/tasks/sshd.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@
1919
mode: 0644
2020
become: no
2121
when: known_hosts_file.stat.exists
22+
23+
- name: Set SSH home directory.
24+
lineinfile:
25+
dest: "/home/{{ drupalvm_user }}/.bashrc"
26+
state: present
27+
create: yes
28+
regexp: "^SSH_HOME="
29+
line: "SSH_HOME={{ ssh_home }} && [ -e $SSH_HOME ] && cd $SSH_HOME"
30+
become: no
31+
when: ssh_home is defined

0 commit comments

Comments
 (0)