diff options
-rw-r--r-- | jinwei.me/config/roles/debian_init/tasks/main.yaml | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/jinwei.me/config/roles/debian_init/tasks/main.yaml b/jinwei.me/config/roles/debian_init/tasks/main.yaml index ff13181..002da90 100644 --- a/jinwei.me/config/roles/debian_init/tasks/main.yaml +++ b/jinwei.me/config/roles/debian_init/tasks/main.yaml | |||
@@ -19,6 +19,7 @@ | |||
19 | - python3-pip | 19 | - python3-pip |
20 | - unzip | 20 | - unzip |
21 | - gnupg | 21 | - gnupg |
22 | - rsync | ||
22 | - htop | 23 | - htop |
23 | - curl | 24 | - curl |
24 | - tree | 25 | - tree |
@@ -76,23 +77,17 @@ | |||
76 | become: true | 77 | become: true |
77 | become_user: admin | 78 | become_user: admin |
78 | 79 | ||
79 | - name: Create fstab entry for samba | ||
80 | mount: | ||
81 | state: present | ||
82 | fstype: cifs | ||
83 | opts: "credentials={{ user_home }}/.credential,file_mode=0755,dir_mode=0755,user" | ||
84 | src: "//{{ lookup('aws_ssm', '/jinwei-me/hetzner/storagebox') }}" | ||
85 | path: "{{ samba_mount_point }}" | ||
86 | become: true | ||
87 | |||
88 | - name: Create directory | 80 | - name: Create directory |
89 | file: | 81 | file: |
90 | path: "{{ samba_mount_point }}" | 82 | path: "{{ samba_mount_point }}" |
91 | state: directory | 83 | state: directory |
92 | mode: '0755' | 84 | mode: '0755' |
93 | 85 | ||
94 | - name: Do the actual mount | 86 | - name: Create fstab entry for samba |
95 | shell: | | 87 | mount: |
96 | mount "{{ samba_mount_point }}" | 88 | state: mounted |
89 | fstype: cifs | ||
90 | opts: "credentials={{ user_home }}/.credential,file_mode=0755,dir_mode=0755,user" | ||
91 | src: "//{{ lookup('aws_ssm', '/jinwei-me/hetzner/storagebox') }}" | ||
92 | path: "{{ samba_mount_point }}" | ||
97 | become: true | 93 | become: true |
98 | become_user: admin | ||