aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jinwei.me/config/roles/debian_init/tasks/main.yaml10
-rw-r--r--jinwei.me/infra/samba.tf2
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" {
13resource "aws_ssm_parameter" "hetzner_storagebox" { 13resource "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}
Powered by cgit v1.2.3 (git 2.41.0)