Skip to content

Commit

Permalink
feat: split setup and playbook script (#34)
Browse files Browse the repository at this point in the history
* feat: split script

Signed-off-by: Hayato Mizushima <[email protected]>

* chore: add path

Signed-off-by: Hayato Mizushima <[email protected]>

* chore: update template

Signed-off-by: Hayato Mizushima <[email protected]>

* fix: last comma

Signed-off-by: Hayato Mizushima <[email protected]>

---------

Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 authored Jan 3, 2025
1 parent e2e3e64 commit bb95445
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"wslg",
"XMODIFIERS",
"xset",
"zstd",
"zstd"
]
}
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@

## How to review this PR

All required checks by github actions have been passed.

## Others
11 changes: 11 additions & 0 deletions ansible-play.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

export PATH="$HOME/.local/bin"

# export .env
set -o allexport
# shellcheck disable=SC1091
source "$(dirname "$0")/.env"
set +o allexport

ansible-playbook ansible/ubuntu.yml --ask-become-pass
3 changes: 0 additions & 3 deletions setup-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ if ! (command -v ansible-playbook >/dev/null 2>&1); then
uv tool install ansible-core
ansible-galaxy collection install community.general
fi

ENV_JSON=env.json
ansible-playbook ansible/ubuntu.yml --ask-become-pass -e @${ENV_JSON}
8 changes: 0 additions & 8 deletions setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,3 @@ if ! (command -v ansible-playbook >/dev/null 2>&1); then
uv tool install ansible-core
ansible-galaxy collection install community.general
fi

# export .env
set -o allexport
# shellcheck disable=SC1091
source "$(dirname $0)/.env"
set +o allexport

ansible-playbook ansible/ubuntu.yml --ask-become-pass

0 comments on commit bb95445

Please sign in to comment.