LoginSignup
0
0

More than 3 years have passed since last update.

Ansible x AWS CLIのリトライ

Posted at

基本的にAnsilbeの基本モジュールを利用するのですが、たまーにCLI実行しないといけない時。
AWSの「Request Limit Error」などを回避するさいにリトライを入れた時の構文。
Shell Script全般で利用可能。

- name: Tag of Lambda Function
  shell: aws lambda tag-resource --resource foge --tags "Name=foge"
  register: aws_lambda_tag_resource
  until: aws_lambda_tag_resource.rc == 0
  retries: 5
  delay: 2
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0