mcmillian.us/main.yaml

20 lines
411 B
YAML
Raw Normal View History

2022-12-14 23:31:02 +00:00
---
- name: deploy mcmillian.dev static site
2023-03-05 18:29:11 +00:00
hosts: web
2022-12-14 23:31:02 +00:00
vars:
html_location: /var/www/html/mcmillian.us
tasks:
- name: ping host
ansible.builtin.ping:
- name: setup location
ansible.builtin.file:
path: "{{ html_location }}"
state: directory
- name: sync html directory
ansible.posix.synchronize:
src: html/
dest: "{{ html_location }}/"