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

Commit

Permalink
Add ssh_home var as default pwd for SSH.
Browse files Browse the repository at this point in the history
  • Loading branch information
thom8 committed Jun 13, 2016
1 parent 5868cdb commit 9cfe62c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,4 @@ selenium_version: 2.46.0
# Other configuration.
dashboard_install_dir: /var/www/dashboard
known_hosts_path: ~/.ssh/known_hosts
#ssh_home: "{{ drupal_core_path }}"
10 changes: 10 additions & 0 deletions provisioning/tasks/sshd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@
mode: 0644
become: no
when: known_hosts_file.stat.exists

- name: Set SSH home directory.
lineinfile:
dest: "/home/{{ drupalvm_user }}/.bashrc"
state: present
create: yes
regexp: "^SSH_HOME="
line: "SSH_HOME={{ ssh_home }} && [ -e $SSH_HOME ] && cd $SSH_HOME"
become: no
when: ssh_home is defined

0 comments on commit 9cfe62c

Please sign in to comment.