Remove remove_container_journal common task file
This is only used once so is not necessary to be in common_tasks Change-Id: I510eb382565a08b72ec3f0145e78365e3597207b
This commit is contained in:
parent
792f1c6a4c
commit
4c40bcb9d6
@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
# Copyright 2018, Rackspace US, Inc.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
- name: Destroy container journal directories
|
|
||||||
file:
|
|
||||||
path: "/var/log/journal/{{ container_machine_id }}"
|
|
||||||
state: "absent"
|
|
||||||
delegate_to: "{{ physical_host }}"
|
|
||||||
when:
|
|
||||||
- not _container_machine_id is failed
|
|
||||||
- force_containers_destroy | bool
|
|
@ -49,10 +49,16 @@
|
|||||||
when:
|
when:
|
||||||
- force_containers_destroy | bool
|
- force_containers_destroy | bool
|
||||||
|
|
||||||
- name: Including remove_container_journal tasks
|
- name: Destroy container journal directories
|
||||||
include_tasks: "common-tasks/remove_container_journal.yml"
|
|
||||||
vars:
|
vars:
|
||||||
container_machine_id: "{{ ((_container_machine_id.content | default('bm9uZQo=')) | b64decode).strip() }}"
|
container_machine_id: "{{ ((_container_machine_id.content | default('bm9uZQo=')) | b64decode).strip() }}"
|
||||||
|
file:
|
||||||
|
path: "/var/log/journal/{{ container_machine_id }}"
|
||||||
|
state: "absent"
|
||||||
|
delegate_to: "{{ physical_host }}"
|
||||||
|
when:
|
||||||
|
- not _container_machine_id is failed
|
||||||
|
- force_containers_destroy | bool
|
||||||
|
|
||||||
- name: Destroy container service directories
|
- name: Destroy container service directories
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user