Open1

ansible Tips

dehio3dehio3

変数定義内で条件分岐

https://qiita.com/da-sugi/items/bffd02b7f0695d08d080
https://girigiribauer.com/tech/20160912/

本番環境だけ特定の監視を有効化

datadog_config:
  ec2_prefer_imdsv2: true
  logs_enabled: "{% if 'production' in group_names %}true{% elif 'staging' in group_names %}false{% else %}fale{% endif %}"
  process_config:
    enabled: true
  apm_config:
    enabled:  "{% if 'production' in group_names %}true{% elif 'staging' in group_names %}false{% else %}fale{% endif %}"