Beginning-Ansible-Concepts-.../chapter05/exploring-apt.yml

16 lines
260 B
YAML
Raw Normal View History

2022-03-21 18:17:54 +01:00
---
- hosts: web-001.local
become: true
tasks:
- name: Ensure nginx is installed
apt:
name: nginx
state: latest
cache_valid_time: 60
- name: Uninstall tree command
apt:
name: tree
state: absent