diff options
-rw-r--r-- | jinwei.me/config/roles/debian_init/tasks/main.yaml | 10 | ||||
-rw-r--r-- | jinwei.me/infra/samba.tf | 2 |
2 files changed, 9 insertions, 3 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 }}" |
diff --git a/jinwei.me/infra/samba.tf b/jinwei.me/infra/samba.tf index 62fadc1..2f99a4a 100644 --- a/jinwei.me/infra/samba.tf +++ b/jinwei.me/infra/samba.tf | |||
@@ -13,5 +13,5 @@ resource "aws_ssm_parameter" "hetzner_password" { | |||
13 | resource "aws_ssm_parameter" "hetzner_storagebox" { | 13 | resource "aws_ssm_parameter" "hetzner_storagebox" { |
14 | name = "/${local.name}/hetzner/storagebox" | 14 | name = "/${local.name}/hetzner/storagebox" |
15 | type = "SecureString" | 15 | type = "SecureString" |
16 | value = var.hetzner_password | 16 | value = var.hetzner_storagebox |
17 | } | 17 | } |