opensuse - install password-store from specific repo (#52439)

This commit is contained in:
Jordan Borean 2019-02-18 13:12:01 +10:00 committed by GitHub
parent fad6443e58
commit 4a94bd8d9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 4 deletions

View file

@ -3,21 +3,34 @@
name: pass name: pass
state: present state: present
when: ansible_pkg_mgr == 'apt' when: ansible_pkg_mgr == 'apt'
- name: "Install package" - name: "Install package"
yum: yum:
name: pass name: pass
state: present state: present
when: ansible_pkg_mgr == 'yum' when: ansible_pkg_mgr == 'yum'
- name: "Install package" - name: "Install package"
dnf: dnf:
name: pass name: pass
state: present state: present
when: ansible_pkg_mgr == 'dnf' when: ansible_pkg_mgr == 'dnf'
- block:
# OpenSUSE Leap>=15.0 don't include password-store in main repo
- name: add security:privacy repo
template:
src: security-privacy.repo.j2
dest: /etc/zypp/repos.d/security:privacy.repo
- name: "Install package" - name: "Install package"
zypper: zypper:
name: password-store name: password-store
state: present state: present
update_cache: yes
disable_gpg_check: yes
when: ansible_pkg_mgr == 'zypper' when: ansible_pkg_mgr == 'zypper'
- name: "Install package" - name: "Install package"
pkgng: pkgng:
name: "{{ item }}" name: "{{ item }}"

View file

@ -0,0 +1,7 @@
[security_privacy]
name=Crypto applications and utilities (openSUSE_Leap_{{ ansible_distribution_version }})
type=rpm-md
baseurl=http://download.opensuse.org/repositories/security:/privacy/openSUSE_Leap_{{ ansible_distribution_version }}/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/security:/privacy/openSUSE_Leap_{{ ansible_distribution_version }}/repodata/repomd.xml.key
enabled=1