Skip to content

Instantly share code, notes, and snippets.

View sionsmith's full-sized avatar

Sion Smith sionsmith

View GitHub Profile
# -- This ansible playbook is for rolling restart of kafka service
#
# -- Here MyEnv is the variable which we need to define while running the ansible command
#
# -- For e.g. if we want to restart kafka service in PROD run below command.
# $ ansible-playbook -kK --sudo -e MyEnv="prod" rolling_restart_kafka.yml
#
# -- In above command, make sure that ansible inventory file(default is /etc/ansible/hosts) has the appropriate hosts grouped together in "prod"
#
# -- If default /etc/ansible/hosts doesn't have desired grouping, create an inventory file "mylocalinventory" locally with desired hostnames
@sionsmith
sionsmith / ami_builder_event.json
Created August 7, 2019 09:19
AWS event template published for CodeBuild successful builds.
[
{
"Source": "com.ami.builder",
"DetailType": "AmiBuilder",
"Detail": "{ \"AmiStatus\": \"Created\"}",
"Resources": [ "<<AMI-ID>>" ]
}
]