blob: 052262c05147312554b51d27762e32e22d8a610f [file] [log] [blame] [edit]
# Copyright (c) 2023 VEXXHOST, 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: Add backports PPA
ansible.builtin.apt_repository:
repo: "{{ multipathd_repository }}"
register: _add_multipathd_ppa
retries: 10
delay: 2
until: _add_multipathd_ppa is not failed
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'jammy'
- name: Install the multipathd package
ansible.builtin.package:
name: multipath-tools
state: latest # noqa: package-latest
notify:
- Restart "multipathd"
- name: Install the configuration file
ansible.builtin.template:
src: multipath.conf.j2
dest: /etc/multipath.conf
owner: root
group: root
mode: "0644"
notify:
- Restart "multipathd"