Skip to content

hbk1-net/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

host-basic-setup-ansible

概要

自宅サーバのホスト構築用の Ansible Playbook です。

使い方

以下のような内容の inventory.ini を用意します。 target node のIPアドレスを指定します。

[hosts]
192.168.2.1 ansible_user=root ansible_ssh_private_key_file=~/.ssh/id_rsa

必要な collection をインストールします。

$ ansible-galaxy collection install community.general

group_vars/all.yaml を作成します。

$ cp group_vars/all.yaml.sample group_vars/all.yaml
$ vi group_vars/all.yaml

ansible-playbook で実行します。

# dry-run
$ ansible-playbook -i inventory.ini playbook.yaml --check --diff -v
$ ansible-playbook -i inventory.ini playbook.yaml --diff -v

About

Ansible playbooks for HayaLab.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors