Ansible automation – Logging user-data script output for EC2 Date Posted: 06-10-2017 When you write ansible playbooks, you may want to log the user_data output of EC2 instance launch. To achieve this, add these below codes at the top of your script vi user_data.sh #!/bin/bash -e exec > >(tee /var/log/user-data.log|logger… Continue Reading Ansible automation – Logging user-data script output for EC2