Debian Codegraph @

ansible_collections/community/mongodb/roles/mongodb_repository/tasks/Debian.yml

raw
1 ---
2 # tasks file for mongodb_repository (Debian os_family)
3 - name: Install debian packages
4 ansible.builtin.apt:
5 name: "{{ debian_packages }}"
6 state: present
7 register: _apt
8 until: _apt is succeeded
9 retries: 5
10 tags:
11 - "pkg"
12 - "setup"
13 - "debian"
14
15 - name: Add apt key for MongoDB repository
16 ansible.builtin.shell: |
17 curl -fsSL https://pgp.mongodb.com/server-{{ mongodb_key_version }}.asc | \
18 gpg --dearmor --output "{{ apt_key }}"
19 args:
20 creates: "{{ apt_key }}"
21 register: _apt
22 until: _apt is succeeded
23 retries: 5
24 tags:
25 - "pkg"
26 - "setup"
27 - "mongodb"
28 - "debian"
29
30 - name: Ensure MongoDB apt repository exists
31 ansible.builtin.apt_repository:
32 repo: "{{ debian.apt_repository_repo }}"
33 state: present
34 filename: "mongodb-{{ mongodb_version }}"
35 register: _apt
36 until: _apt is succeeded
37 retries: 5
38 tags:
39 - "pkg"
40 - "setup"
41 - "mongodb"
42 - "debian"