From 5c85d1deca4570692eeeda0cb78999b62767cae4 Mon Sep 17 00:00:00 2001 From: Maxime Froment Date: Wed, 20 Oct 2021 19:50:12 +0900 Subject: [PATCH] aws_ssm connection / SSE parameters: add an example --- plugins/connection/aws_ssm.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/connection/aws_ssm.py b/plugins/connection/aws_ssm.py index 1576512653b..886c011b0c4 100644 --- a/plugins/connection/aws_ssm.py +++ b/plugins/connection/aws_ssm.py @@ -174,6 +174,20 @@ state: directory # Execution: ansible-playbook win_file.yaml -i aws_ec2.yml # The playbook tasks will get executed on the instance ids returned from the dynamic inventory plugin using ssm connection. + +# Install a Nginx Package on Linux Instance; with specific SSE for file transfer +- name: Install a Nginx Package + vars: + ansible_connection: aws_ssm + ansible_aws_ssm_bucket_name: nameofthebucket + ansible_aws_ssm_region: us-west-2 + ansible_aws_ssm_bucket_sse_mode: 'aws:kms' + ansible_aws_ssm_bucket_sse_kms_key_id: alias/kms-key-alias + tasks: + - name: Install a Nginx Package + yum: + name: nginx + state: present ''' import os