mirror of
https://github.com/geerlingguy/ansible-role-ansible.git
synced 2024-12-28 16:57:50 +01:00
Fix Ubuntu installation issue if dirmngr isn't present.
This commit is contained in:
parent
d272377d9c
commit
00ff01ede6
@ -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
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user