Commit 0c9df2fb by Fred Smith

check for and replace expired key

parent 9aca429e
...@@ -39,3 +39,6 @@ server_utils_debian_pkgs: ...@@ -39,3 +39,6 @@ server_utils_debian_pkgs:
- netcat - netcat
server_utils_redhat_pkgs: [] server_utils_redhat_pkgs: []
SERVER_UTILS_EDX_PPA_KEY_ID: "69464050"
SERVER_UTILS_EDX_PPA_KEY_SERVER: "keyserver.ubuntu.com"
...@@ -21,6 +21,14 @@ ...@@ -21,6 +21,14 @@
# #
# #
- name: Check for expired edx key
command: "apt-key list | grep {{ SERVER_UTILS_EDX_PPA_KEY_ID }}"
register: ppa_key_status
- name: remove expired edx key
command: "sudo apt-key adv --keyserver {{ SERVER_UTILS_EDX_PPA_KEY_SERVER }} --recv-keys {{ SERVER_UTILS_EDX_PPA_KEY_ID }}"
when: "'expired' in ppa_key_status.stdout"
- name: Install ubuntu system packages - name: Install ubuntu system packages
apt: apt:
name: "{{ item }}" name: "{{ item }}"
......
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