Mohammed Naser | ff42bb3 | 2023-06-03 13:42:14 -0400 | [diff] [blame] | 1 | # 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 Naser | afcf0a1 | 2024-05-19 00:13:27 +0200 | [diff] [blame] | 15 | - name: Add backports PPA |
| 16 | ansible.builtin.apt_repository: |
Michiel Piscaer | 39dde0c | 2024-06-21 20:27:47 +0200 | [diff] [blame] | 17 | repo: "{{ multipathd_repository }}" |
Oleksandr K | 92ac0b6 | 2024-07-11 21:49:57 +0200 | [diff] [blame] | 18 | register: _add_multipathd_ppa |
| 19 | retries: 10 |
| 20 | delay: 2 |
| 21 | until: _add_multipathd_ppa is not failed |
Yaguang Tang | ff5a5a2 | 2024-07-13 07:09:12 +0800 | [diff] [blame] | 22 | when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'jammy' |
Mohammed Naser | afcf0a1 | 2024-05-19 00:13:27 +0200 | [diff] [blame] | 23 | |
| 24 | - name: Install the multipathd package |
| 25 | ansible.builtin.package: |
| 26 | name: multipath-tools |
Mohammed Naser | 6080c9b | 2024-07-18 10:43:09 -0400 | [diff] [blame] | 27 | state: latest # noqa: package-latest |
Mohammed Naser | afcf0a1 | 2024-05-19 00:13:27 +0200 | [diff] [blame] | 28 | notify: |
Mohammed Naser | ab36004 | 2024-06-21 13:45:10 -0400 | [diff] [blame] | 29 | - Restart "multipathd" |
Mohammed Naser | afcf0a1 | 2024-05-19 00:13:27 +0200 | [diff] [blame] | 30 | |
Mohammed Naser | ff42bb3 | 2023-06-03 13:42:14 -0400 | [diff] [blame] | 31 | - name: Install the configuration file |
| 32 | ansible.builtin.template: |
| 33 | src: multipath.conf.j2 |
| 34 | dest: /etc/multipath.conf |
| 35 | owner: root |
| 36 | group: root |
| 37 | mode: "0644" |
| 38 | notify: |
Mohammed Naser | ab36004 | 2024-06-21 13:45:10 -0400 | [diff] [blame] | 39 | - Restart "multipathd" |