This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Source": "com.ami.builder", | |
"DetailType": "AmiBuilder", | |
"Detail": "{ \"AmiStatus\": \"Created\"}", | |
"Resources": [ "<<AMI-ID>>" ] | |
} | |
] |