Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-pc-setup

mini-pc のセットアップ用 Ansible プレイブックです。

必要なもの

  • Ansible
  • make

前提条件

GH_TOKEN の設定

plant-diary のコンテナイメージは ghcr.io から取得するため、GitHub Personal Access Token (PAT) が必要です。

  1. GitHubで read:packages スコープを持つPATを作成します。
  2. .devcontainer/.env-template をコピーして .devcontainer/.env を作成します。
  3. GH_TOKEN に作成したPATを設定します。
GH_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxx

使い方

  1. ~/.ssh/config に mini-pc への接続設定を行います。
Host mini-pc
    HostName <IP_ADDRESS>
    User <ユーザー名>
    IdentityFile ~/.ssh/id_rsa
  1. 下記コマンドで接続確認を行います。
make ping
  1. プレイブックを実行します。
make deploy

機密情報の更新

機密情報は vars/secrets.yml に記載されています。必要に応じて次のコマンドで更新してください。

make edit-secrets

コマンド一覧

make help で利用可能なコマンドの一覧を確認できます。

make help

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages