---
  - name: Ensure directory for website exists
    file: path=/var/www/dylanmtaylor.com/html state=directory

  - name: Retrieve latest version of website files
    shell: rm -rf /var/www/dylanmtaylor.com/html/* &&  curl -Ls https://gitlab.com/dylanmtaylor/dylanmtaylor.gitlab.io/-/jobs/artifacts/master/download?job=build_blog > /tmp/site.zip && unzip -o /tmp/site.zip -d /var/www/dylanmtaylor.com/html/ && rm /tmp/site.zip
         
  - name: Ensure directory for resume exists
    file: path=/root/Dylan-Resume state=directory

  - name: Checkout latest version of resume files from gitlab
    git: repo=https://gitlab.com/dylanmtaylor/Dylan-Resume.git
         dest=/root/Dylan-Resume
         version=HEAD
         update=yes
         force=yes

---
  - name: Clear out existing website files
    file:
      state: absent
      path: "/var/www/dylanmtaylor.com/html/"

  - name: Ensure directory for website exists
    file: path=/var/www/dylanmtaylor.com/html state=directory

  - name: Retrieve latest version of website files
    shell: curl -Ls https://gitlab.com/dylanmtaylor/dylanmtaylor.gitlab.io/-/jobs/artifacts/master/download?job=build_blog > /tmp/site.zip && unzip -o /tmp/site.zip -d /var/www/dylanmtaylor.com/html/ && rm /tmp/site.zip
         
  - name: Ensure directory for resume exists
    file: path=/root/Dylan-Resume state=directory

  - name: Checkout latest version of resume files from gitlab
    git: repo=https://gitlab.com/dylanmtaylor/Dylan-Resume.git
         dest=/root/Dylan-Resume
         version=HEAD
         update=yes
         force=yes

Change from using rm to a state=absent for the website contents
Change from using rm to a state=absent for the website contents