blob: 745406f91c0aa524128ec977ad25f3a846572d19 [file] [log] [blame]
Mohammed Naserff42bb32023-06-03 13:42:14 -04001# Copyright (c) 2023 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
Mohammed Naserafcf0a12024-05-19 00:13:27 +020015- name: Add backports PPA
16 ansible.builtin.apt_repository:
vexxhost-bot86138a82024-06-22 03:01:04 +020017 repo: "{{ multipathd_repository }}"
vexxhost-botfdc61d62024-07-12 16:15:54 +020018 register: _add_multipathd_ppa
19 retries: 10
20 delay: 2
21 until: _add_multipathd_ppa is not failed
Mohammed Naserafcf0a12024-05-19 00:13:27 +020022
23- name: Install the multipathd package
24 ansible.builtin.package:
25 name: multipath-tools
26 state: latest
27 notify:
vexxhost-botd41f0de2024-06-22 03:01:23 +020028 - Restart "multipathd"
Mohammed Naserafcf0a12024-05-19 00:13:27 +020029
Mohammed Naserff42bb32023-06-03 13:42:14 -040030- name: Install the configuration file
31 ansible.builtin.template:
32 src: multipath.conf.j2
33 dest: /etc/multipath.conf
34 owner: root
35 group: root
36 mode: "0644"
37 notify:
vexxhost-botd41f0de2024-06-22 03:01:23 +020038 - Restart "multipathd"