mirror of
https://github.com/geerlingguy/ansible-role-ansible.git
synced 2024-11-25 12:05:11 +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
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: Update apt cache.
|
||||||
|
apt: update_cache=true cache_valid_time=300
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: geerlingguy.ansible
|
- role: geerlingguy.ansible
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- name: Ensure dirmngr is installed (gnupg dependency).
|
||||||
|
apt:
|
||||||
|
name: dirmngr
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Add ansible repository.
|
- name: Add ansible repository.
|
||||||
apt_repository: repo='ppa:ansible/ansible'
|
apt_repository: repo='ppa:ansible/ansible'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user