diff options
Diffstat (limited to 'jinwei.me/config/roles/debian_init/tasks/main.yaml')
-rw-r--r-- | jinwei.me/config/roles/debian_init/tasks/main.yaml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jinwei.me/config/roles/debian_init/tasks/main.yaml b/jinwei.me/config/roles/debian_init/tasks/main.yaml index e33f32b..ff13181 100644 --- a/jinwei.me/config/roles/debian_init/tasks/main.yaml +++ b/jinwei.me/config/roles/debian_init/tasks/main.yaml | |||
@@ -62,7 +62,7 @@ | |||
62 | daemon_reload: true | 62 | daemon_reload: true |
63 | 63 | ||
64 | - name: Clean unneeded packages | 64 | - name: Clean unneeded packages |
65 | ansible.builtin.apt: | 65 | apt: |
66 | autoremove: true | 66 | autoremove: true |
67 | purge: true | 67 | purge: true |
68 | 68 | ||
@@ -71,7 +71,7 @@ | |||
71 | content: | | 71 | content: | |
72 | username={{ lookup('aws_ssm', '/jinwei-me/hetzner/username') }} | 72 | username={{ lookup('aws_ssm', '/jinwei-me/hetzner/username') }} |
73 | password={{ lookup('aws_ssm', '/jinwei-me/hetzner/password') }} | 73 | password={{ lookup('aws_ssm', '/jinwei-me/hetzner/password') }} |
74 | dest: {{ user_home }}/.credential | 74 | dest: "{{ user_home }}/.credential" |
75 | mode: 0600 | 75 | mode: 0600 |
76 | become: true | 76 | become: true |
77 | become_user: admin | 77 | become_user: admin |
@@ -85,6 +85,12 @@ | |||
85 | path: "{{ samba_mount_point }}" | 85 | path: "{{ samba_mount_point }}" |
86 | become: true | 86 | become: true |
87 | 87 | ||
88 | - name: Create directory | ||
89 | file: | ||
90 | path: "{{ samba_mount_point }}" | ||
91 | state: directory | ||
92 | mode: '0755' | ||
93 | |||
88 | - name: Do the actual mount | 94 | - name: Do the actual mount |
89 | shell: | | 95 | shell: | |
90 | mount "{{ samba_mount_point }}" | 96 | mount "{{ samba_mount_point }}" |