diff options
author | clarkzjw <[email protected]> | 2022-12-13 12:08:08 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2022-12-13 12:08:08 -0800 |
commit | 9c1be2b1bfb92af05a1b6e724608a55eec772425 (patch) | |
tree | 2cca75c29d6e97343fd0dae076396a2ef61a333d | |
parent | 9b48f36555d3c0a4e92f7a940fafc6eb69dec548 (diff) | |
download | jinwei.me-9c1be2b1bfb92af05a1b6e724608a55eec772425.tar.gz |
config: fix samba mount
-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 | ||