15 lines
302 B
YAML
15 lines
302 B
YAML
---
|
|
- name: Ensure dirmngr is installed (gnupg dependency).
|
|
apt:
|
|
name: dirmngr
|
|
state: present
|
|
|
|
- name: Add ansible repository.
|
|
apt_repository:
|
|
repo: 'ppa:ansible/ansible'
|
|
update_cache: true
|
|
|
|
- name: Install Ansible.
|
|
apt:
|
|
name: ansible
|
|
state: "{{ ansible_package_state }}"
|