Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 1 | # 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 | |
| 15 | - name: add apt key |
| 16 | ansible.builtin.apt_key: |
| 17 | url: "{{ helm_repository_apt_key }}" |
| 18 | state: present |
| 19 | |
| 20 | - name: configure version pinning |
| 21 | ansible.builtin.template: |
| 22 | src: apt-preferences.j2 |
| 23 | dest: /etc/apt/preferences.d/helm |
| 24 | mode: 0644 |
| 25 | |
| 26 | - name: Add package repository |
| 27 | ansible.builtin.apt_repository: |
| 28 | repo: "deb {{ helm_repository_url }} all main" |
| 29 | state: present |
| 30 | |
| 31 | - name: Install packages |
| 32 | ansible.builtin.apt: |
ricolin | 09e2288 | 2022-08-04 12:21:58 +0800 | [diff] [blame] | 33 | name: ["git", "helm"] |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 34 | install_recommends: false |
Michiel Piscaer | e682a3c | 2022-06-16 09:36:26 +0000 | [diff] [blame] | 35 | |
| 36 | - name: add bash autocomplete for helm |
| 37 | ansible.builtin.lineinfile: |
| 38 | path: /root/.bashrc |
| 39 | line: 'source <(helm completion bash)' |
| 40 | insertbefore: EOF |