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

16 lines
302 B
YAML
Raw Normal View History

---
- 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 }}"