diff --git a/.github/workflows/develop_branch.yml b/.github/workflows/develop_branch.yml index fb9e347..ae75be6 100644 --- a/.github/workflows/develop_branch.yml +++ b/.github/workflows/develop_branch.yml @@ -80,6 +80,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + submodules: "recursive" - name: Prepare environments (ansible-galaxy install role) run: | diff --git a/.github/workflows/main_branch.yml b/.github/workflows/main_branch.yml index 240f68b..d866848 100644 --- a/.github/workflows/main_branch.yml +++ b/.github/workflows/main_branch.yml @@ -82,6 +82,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + submodules: "recursive" - name: Prepare environments (ansible-galaxy install role) run: | @@ -127,6 +129,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + submodules: "recursive" - name: Prepare environments (ansible-galaxy install role) run: | diff --git a/inventories/group_vars/all.yml b/inventories/group_vars/all.yml index 5a71ca2..bc6c357 100644 --- a/inventories/group_vars/all.yml +++ b/inventories/group_vars/all.yml @@ -26,6 +26,13 @@ all: user: - name: hayato username: hayato + password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 38396562616338333562613634333436303439626164653362633935653338633163396333633031 + 3335616530376331643032373961386135666265666366610a623061653731306630386638376136 + 64376335353461373666373433313462366436373631303436666139336365623263643162653563 + 3535316564646334350a376361666362643737383539366133363763663162313236643634343437 + 6564 gid: 1000 uid: 1000 homedir: "/home/hayato" diff --git a/tasks/all/usermod.yml b/tasks/all/usermod.yml index dca6d29..c4589ce 100644 --- a/tasks/all/usermod.yml +++ b/tasks/all/usermod.yml @@ -19,11 +19,20 @@ loop: "{{ all.vars.user }}" + - name: "Common / Makedir source dir parent (Ubuntu)" + ansible.builtin.file: + path: "{{ item.homedir }}/Source" + state: directory + owner: "{{ item.username }}" + group: "{{ item.username }}" + mode: '0755' + loop: + "{{ all.vars.user }}" + - name: "Common / Makedir source dir (Ubuntu)" ansible.builtin.file: path: "{{ item.homedir }}/Source/zshrc" state: directory - recurse: true owner: "{{ item.username }}" group: "{{ item.username }}" mode: '0755' @@ -64,13 +73,22 @@ loop: "{{ all.vars.user }}" - - name: "Common / Makedir source dir (Ubuntu)" + - name: "Common / Makedir source dir parent (macOS)" ansible.builtin.file: - path: "{{ item.homedir_mac }}/Source/zshrc/" - recurse: true + path: "{{ item.homedir_mac }}/Source" + state: directory owner: "{{ item.username }}" group: "{{ item.username }}" + mode: '0755' + loop: + "{{ all.vars.user }}" + + - name: "Common / Makedir source dir (macOS)" + ansible.builtin.file: + path: "{{ item.homedir_mac }}/Source/zshrc" state: directory + owner: "{{ item.username }}" + group: "{{ item.username }}" mode: '0755' loop: "{{ all.vars.user }}"