-
Notifications
You must be signed in to change notification settings - Fork 0
/
_deployer_restore_helper.yml
42 lines (41 loc) · 1.47 KB
/
_deployer_restore_helper.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
42
#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- hosts: localhost
connection: local
vars_prompt:
- name: old_deployer_hostname
prompt: |
What was the hostname of the old deployer?
Most probably something like <cloudname>-ccp-c0-m1-mgmt
Or <cloudname>-ccp-c1-m1-mgmt if it was running on the first controller.
confirm: yes
roles:
- freezer-agent
- freezer-jobs
tasks:
- include: roles/freezer-agent/tasks/install.yml
- name: freezer-agent | install | Activate the latest install
become: yes
install_package:
name: freezer_agent
service: freezer-agent
activate: act_on
version: "{{ freezer_agent_install_result.version }}"
when: freezer_agent_install_result is defined and
deployer_media_legacy_layout|bool
- include: roles/freezer-jobs/tasks/_deployer_restore_helper.yml