aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/aws/tasks/main.yaml
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-08-11 09:55:22 +0000
committerpmikus <pmikus@cisco.com>2021-08-11 09:55:22 +0000
commit44784f12e7a1cfe42927bd301b90015ffa72b7d7 (patch)
treed6f702f9b5c79a81b076bc6d90c5287a4d256ade /fdio.infra.ansible/roles/aws/tasks/main.yaml
parent6de5c7fc4524c5121ed00dc2fa3ab34301d45215 (diff)
Infra: AWS self termination
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I9ecd85d1086f6be1bbaf6a6925da362cc4c1a9ad
Diffstat (limited to 'fdio.infra.ansible/roles/aws/tasks/main.yaml')
-rw-r--r--fdio.infra.ansible/roles/aws/tasks/main.yaml7
1 files changed, 6 insertions, 1 deletions
diff --git a/fdio.infra.ansible/roles/aws/tasks/main.yaml b/fdio.infra.ansible/roles/aws/tasks/main.yaml
index 2d209762c3..2b8c22ccce 100644
--- a/fdio.infra.ansible/roles/aws/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/aws/tasks/main.yaml
@@ -82,7 +82,7 @@
tags:
- aws-reload-systemd-modules
-- name: Performance Tuning - Adjust nr_hugepages
+- name: Adjust nr_hugepages
sysctl:
name: "vm.nr_hugepages"
value: "8192"
@@ -91,3 +91,8 @@
reload: "yes"
tags:
- aws-set-hugepages
+
+- name: Shutdown host with delay
+ command: "/sbin/shutdown -P +720"
+ tags:
+ - aws-set-self-terminate