Open1
ansible Tips
変数定義内で条件分岐
本番環境だけ特定の監視を有効化
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 %}"