blob: 668da6588ef009b341b4aefec82bd579da4532d2 [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:
Michiel Piscaer39dde0c2024-06-21 20:27:47 +020017 repo: "{{ multipathd_repository }}"
Mohammed Naserafcf0a12024-05-19 00:13:27 +020018
19- name: Install the multipathd package
20 ansible.builtin.package:
21 name: multipath-tools
22 state: latest
23 notify:
Mohammed Naserab360042024-06-21 13:45:10 -040024 - Restart "multipathd"
Mohammed Naserafcf0a12024-05-19 00:13:27 +020025
Mohammed Naserff42bb32023-06-03 13:42:14 -040026- name: Install the configuration file
27 ansible.builtin.template:
28 src: multipath.conf.j2
29 dest: /etc/multipath.conf
30 owner: root
31 group: root
32 mode: "0644"
33 notify:
Mohammed Naserab360042024-06-21 13:45:10 -040034 - Restart "multipathd"