mirror of
https://github.com/Apress/Beginning-Ansible-Concepts-and-Application.git
synced 2024-09-18 21:57:28 +02:00
15 lines
260 B
YAML
15 lines
260 B
YAML
---
|
|
- 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
|
|
|