Fix Ubuntu installation issue if dirmngr isn't present.

This commit is contained in:
Jeff Geerling 2020-02-20 16:43:22 -06:00
parent d272377d9c
commit 00ff01ede6
2 changed files with 10 additions and 0 deletions

View File

@ -3,5 +3,10 @@
hosts: all
become: true
pre_tasks:
- name: Update apt cache.
apt: update_cache=true cache_valid_time=300
when: ansible_os_family == 'Debian'
roles:
- role: geerlingguy.ansible

View File

@ -1,4 +1,9 @@
---
- name: Ensure dirmngr is installed (gnupg dependency).
apt:
name: dirmngr
state: present
- name: Add ansible repository.
apt_repository: repo='ppa:ansible/ansible'