2022-11-19 23:06:15 +00:00
|
|
|
---
|
|
|
|
- name: Deploy mcmillian.dev static site
|
2023-03-05 18:27:18 +00:00
|
|
|
hosts: web
|
2022-11-19 23:06:15 +00:00
|
|
|
vars:
|
|
|
|
html_location: /var/www/html/mcmillian.dev
|
|
|
|
|
|
|
|
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 }}/"
|