LoginSignup
4
3

More than 5 years have passed since last update.

ansible_から始まる変数

Last updated at Posted at 2014-03-20
$ ansible -i hosts ホスト名 -m setup

などと実行すると、テンプレートやyaml中で使える変数を取得できる。

ansible_fqdnやansible_domain、ansible_distribution、ansible_distribution_versionなどがサーバの設定で使えて便利。

varsに同名の値を定義しても上書きできない模様。

4
3
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
4
3