diff options
author | 2021-08-11 09:55:22 +0000 | |
---|---|---|
committer | 2021-08-11 09:55:22 +0000 | |
commit | 44784f12e7a1cfe42927bd301b90015ffa72b7d7 (patch) | |
tree | d6f702f9b5c79a81b076bc6d90c5287a4d256ade /fdio.infra.ansible/roles/aws/tasks | |
parent | 6de5c7fc4524c5121ed00dc2fa3ab34301d45215 (diff) |
Infra: AWS self termination
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I9ecd85d1086f6be1bbaf6a6925da362cc4c1a9ad
Diffstat (limited to 'fdio.infra.ansible/roles/aws/tasks')
-rw-r--r-- | fdio.infra.ansible/roles/aws/tasks/main.yaml | 7 |
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 |