-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.yml
41 lines (34 loc) · 1.33 KB
/
resume.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# for local customizations
- import_playbook: before.yml
# First, perform important setup tasks, like resetting hostnames
# to the ansible-known inventory names, and pushing up a new
# and correct /etc/hosts, in the event that either hostname
# or ip addresses have changed on restart. These are
# standard behavior on at least one cloud each, and are
# idempotent and therefore safe to apply on all clouds.
- name: Handle potential IP changes.
hosts: all
tasks:
- name: Set up environment
include_tasks: roles/common/tasks/pre.yml
- name: Set hostnames.
include_tasks: roles/common/tasks/hostname.yml
- name: Push up hosts files.
include_tasks: roles/common/tasks/hosts.yml
# Next, ensure that the services that run this cluster are
# started. It's common for a service to fail to restart
# during machine boot (because, e.g. it cannot contact the
# master, whose ip address has changed). Cluster-type
# specific updates may also be listed in these playbooks.
- import_playbook: roles/slurm-resume.yml
#
# These cluster types have been confirmed not to need
# additional customization.
# - import_playbook: roles/gridengine-resume.yml
# - import_playbook: roles/hadoop-resume.yml
#
# Remaining cluster types may or may not work after resuming.
#
# Report success, as all went well!
- import_playbook: after.yml