LoginSignup
6
4

More than 5 years have passed since last update.

ansibleでサーバの構成情報を取得する

Posted at

目的

複数のLinuxサーバからOS周りの構成情報を一気に収集する。

コマンド

ansible all -m setup -i hosts.lst --tree /tmp/ansible_facts
hosts.lst
192.168.56.101
192.168.56.102
192.168.56.103

/tmp/ansible_facts配下に、IPアドレス名でJson形式のファイルが出力される。

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4