Beginning-Ansible-Concepts-.../chapter04/webservers.yml
2022-04-23 08:57:49 +01:00

15 lines
285 B
YAML

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