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

Commit

Permalink
Merge pull request #665 from thom8/ssh_home
Browse files Browse the repository at this point in the history
Set ssh_home as default pwd for SSH.
  • Loading branch information
geerlingguy authored Jun 13, 2016
2 parents 5868cdb + 9cfe62c commit 7344434
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 7344434

Please sign in to comment.