blob: 72714dbde6a234affd5ffc2bfe891c20a07a6294 [file] [log] [blame]
Mohammed Naser0003fd02022-03-12 15:38:24 -05001# Copyright (c) 2022 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
ricolin09e22882022-08-04 12:21:58 +080015- name: install packages
16 ansible.builtin.apt:
17 name: ["gnupg"]
18 install_recommends: false
19
Mohammed Naser0003fd02022-03-12 15:38:24 -050020- name: add apt key
21 ansible.builtin.apt_key:
22 url: "{{ ceph_repository_apt_key }}"
23 state: present
24
25- name: configure version pinning
26 ansible.builtin.template:
27 src: apt-preferences.j2
28 dest: /etc/apt/preferences.d/ceph
29 mode: 0644
30
31- name: add apt repository
32 ansible.builtin.apt_repository:
33 repo: "deb {{ ceph_repository_url }} {{ ansible_distribution_release }} main"
34 state: present