- name: make /srv/web/fedora.im dir
  file: state=directory
        path=/srv/web/fedora.im
        owner=apache
        group=apache
        mode=0775
        setype=httpd_sys_content_t
        seuser=system_u
  tags:
  - fedora-web
  - fedora-web/fedora.im

- name: Copy some config files for {{website}}
  copy: >
    src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
    owner=root group=root mode=0644
  with_items:
  - matrix.conf
  notify:
  - reload proxyhttpd
  tags:
  - fedora-web
  - fedora-web/fedora.im

- name: copy in some matrix files
  copy: >
    src={{item}} dest=/srv/web/fedora.im/{{item}}
    owner=root group=root mode=0644
  with_items:
  - .well-known-matrix-client-fedora-im
  - .well-known-matrix-server-fedora-im
  tags:
  - fedora-web
  - fedora-web/fedora.im

- name: grab some images from design
  copy: >
    src={{item.src_name}} dest=/srv/web/fedora.im/{{item.dest}}
    owner=root group=root mode=0644
  with_items:
    - src_name: "/srv/web/infra/bigfiles/design/fedora_logo.png"
      dest: fedora_logo.png
    - src_name: "/srv/web/infra/bigfiles/design/fedora_temp.png"
      dest: fedora_welcome.png
  tags:
  - fedora-web
  - fedora-web/fedora.im
