Beginning-Ansible-Concepts-.../chapter04/webservers.yml

16 lines
285 B
YAML
Raw Normal View History

2022-03-21 18:17:54 +01:00
---
- hosts: webservers
become: true
tasks:
- name: Ensure nginx is installed
apt:
name: nginx
state: present
- name: Push website content to the web root
copy :
src: index.html
dest: /var/www/html/
mode: u=rw,g=r,o=r