mirror of
https://github.com/Apress/Beginning-Ansible-Concepts-and-Application.git
synced 2024-11-09 17:07:44 +01:00
16 lines
260 B
YAML
16 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
|
||
|
|