c583922c27
This change allows you to define additional VMs to deploy on the seed-hypervisor. Co-authored-by: Piotr Parczewski <piotr@stackhpc.com> Co-authored-by: Will Szumski <will@stackhpc.com> Co-authored-by: Mark Goddard <mark@stackhpc.com> Story: 2008741 Task: 42095 Change-Id: I8055fc5eb0a9edadcb35767303c659922f2d07ca
19 lines
639 B
YAML
19 lines
639 B
YAML
---
|
|
# NOTE(priteau): On seed hypervisors running CentOS 8, the configdrive role
|
|
# will fail to install coreutils if coreutils-single is already present.
|
|
# Until the role handles it, install it using the --allowerasing option
|
|
# which will remove coreutils-single.
|
|
- name: Ensure coreutils package is installed
|
|
command: "dnf install coreutils -y --allowerasing"
|
|
become: True
|
|
when:
|
|
- ansible_facts.os_family == 'RedHat'
|
|
|
|
- name: Ensure the image cache directory exists
|
|
file:
|
|
path: "{{ image_cache_path }}"
|
|
state: directory
|
|
owner: "{{ ansible_facts.user_uid }}"
|
|
group: "{{ ansible_facts.user_gid }}"
|
|
become: True
|