File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 141
141
update_cache : yes
142
142
when : ansible_distribution in common_redhat_variants
143
143
144
+ - name : Remove Amazon SSM Agent installed via snap
145
+ snap :
146
+ name : " amazon-ssm-agent"
147
+ state : absent
148
+ when : ansible_distribution in common_debian_variants
149
+
150
+ - name : Download Amazon SSM Agent
151
+ get_url :
152
+ url : " {{ common_amazon_ssm_agent_package_url }}"
153
+ dest : " {{ common_amazon_ssm_agent_package_local_path }}"
154
+ mode : ' 0644'
155
+ when : ansible_distribution in common_debian_variants
156
+
157
+ - name : Install Amazon SSM Agent via apt
158
+ apt :
159
+ deb : " {{ common_amazon_ssm_agent_package_local_path }}"
160
+ when : ansible_distribution in common_debian_variants
161
+
162
+ - name : Remove Amazon SSM Agent package
163
+ file :
164
+ path : " {{ common_amazon_ssm_agent_package_local_path }}"
165
+ state : absent
166
+ when : ansible_distribution in common_debian_variants
167
+
168
+ - name : Enable Amazon SSM Agent
169
+ systemd :
170
+ name : " amazon-ssm-agent"
171
+ state : stopped
172
+ enabled : true
173
+ when : ansible_distribution in common_debian_variants
144
174
145
175
- name : Create common directories
146
176
file :
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ common_debian_pkgs_default:
137
137
- unzip
138
138
- net-tools
139
139
- python3-pip
140
+ - xz-utils
140
141
141
142
common_release_specific_debian_pkgs :
142
143
xenial :
@@ -152,6 +153,9 @@ common_release_specific_debian_pkgs:
152
153
153
154
common_debian_pkgs : " {{ common_debian_pkgs_default + common_release_specific_debian_pkgs[ansible_distribution_release] }}"
154
155
156
+ common_amazon_ssm_agent_package_url : " https://s3.us-east-1.amazonaws.com/amazon-ssm-us-east-1/latest/debian_amd64/amazon-ssm-agent.deb"
157
+ common_amazon_ssm_agent_package_local_path : " /tmp/amazon-ssm-agent.deb"
158
+
155
159
common_debian_devstack_pkgs :
156
160
- watchman
157
161
You can’t perform that action at this time.
0 commit comments