LoginSignup
11
11

More than 5 years have passed since last update.

Ansible の template で生成したファイルに ansible によって生成されたというコメントを入れる

Posted at

Ansible の template ファイルに

{{ ansible_managed }}

を入れておくことで

Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}

というフォーマットで挿入できます。
このフォーマットはデフォルト値で ansible.cfg にて ansible_managed の値で変更できます。

http://www.ansibleworks.com/docs/intro_configuration.html#ansible-managed
に書いてあるまんまですけど。

11
11
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
11
11