Commit 6d021d81 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: make sure gpg package is installed before adding and removing package keys

parent e7d98ea2
- apt: name=gpg state=present
when: ansible_distribution == "Debian"
- include: fedora_init.yml
- include: debian_init.yml
- name: Remove {{ base_open_build_url }} key (and add later) on every upgrade, as expiration date is quite short (2 months). - name: Remove {{ base_open_build_url }} key (and add later) on every upgrade, as expiration date is quite short (2 months).
apt_key: id=94A63987 state=absent apt_key: id=94A63987 state=absent
when: ansible_distribution == "Debian" when: ansible_distribution == "Debian"
...@@ -6,8 +10,6 @@ ...@@ -6,8 +10,6 @@
- file: path=/etc/apt/sources.list.d/re6stnet.list state=absent - file: path=/etc/apt/sources.list.d/re6stnet.list state=absent
when: ansible_distribution == "Debian" when: ansible_distribution == "Debian"
- include: fedora_init.yml
- name: Install Debian 10 repository key - name: Install Debian 10 repository key
apt_key: url={{ base_open_build_url }}/Debian_10/Release.key state=present apt_key: url={{ base_open_build_url }}/Debian_10/Release.key state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "10" when: ansible_distribution == "Debian" and ansible_distribution_major_version == "10"
......
rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && slapcache-upload --file=/tmp/archive.tar.gz rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && ~/workspace/slapcache/venv2/bin/slapcache-upload --file=/tmp/archive.tar.gz
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment