Skip to content

Commit 8317922

Browse files
authored
Merge pull request #465 from ripleymj/sftp-bookmark
Change stu shortcut to a bookmark and add Ubuntu compat
2 parents a0e324f + 4c04534 commit 8317922

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

roles/user/files/stu-home.desktop

Lines changed: 0 additions & 10 deletions
This file was deleted.

roles/user/tasks/main.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,17 @@
7171
key: "{{ stu_host_key }}"
7272
hash_host: yes
7373
state: present
74-
- name: Copy stu-home desktop
75-
copy:
76-
src: stu-home.desktop
77-
dest: '{{ item.homedir }}/Desktop'
78-
owner: '{{ item.uid }}'
79-
group: '{{ item.gid }}'
80-
mode: "0750"
81-
with_items: "{{ real_users }}"
82-
when: "ansible_distribution == 'Linux Mint'"
74+
- name: Create stu-home bookmark
75+
lineinfile:
76+
path: '{{ item.homedir }}/.config/gtk-3.0/bookmarks'
77+
line: "sftp://{{ item.user }}@stu.cs.jmu.edu/cs/home/stu/{{ item.user }} Home on stu"
78+
state: present
79+
insertafter: EOF
80+
create: yes
81+
owner: '{{ item.user }}'
82+
group: '{{ item.user }}'
83+
mode: "0644"
84+
loop: "{{ real_users }}"
8385
- name: Add profile to user bashrc
8486
lineinfile:
8587
path: '{{ item.homedir }}/.bashrc'

0 commit comments

Comments
 (0)