homeserver/roles/geerlingguy.ansible/tasks/setup-Ubuntu.yml

16 lines
302 B
YAML
Raw Normal View History

2021-02-13 14:20:18 +01:00
---
- 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 }}"