<commit_before>---
# CAVEAT: This role requires LetsEncrypt SSL certs and PHP-FPM to already be in place.
# For future reference: https://certbot-dns-cloudflare.readthedocs.io/en/latest/

- name: (hack) erase conflicting mariadb-libs package
  package:
    state: absent
    name: mariadb-libs

- name: install MariaDB
  package:
    state: present
    name:
      - mariadb101u-server

- name: start/enable MariaDB
  service:
    name: mariadb
    state: started
    enabled: yes

- name: create server block root directory
  file:
    state: directory
    path: "/var/www/blog.justinwflory.com/"
    mode: 0755
    seuser: system_u
    setype: httpd_sys_content_t

- name: nginx - create html directory
  file:
    state: directory
    path: "/var/www/blog.justinwflory.com/html/"
    mode: 0775
    group: www-admin
    owner: www-admin
    seuser: system_u
    setype: httpd_sys_content_t

- name: nginx - create logs directory
  file:
    state: directory
    path: "/var/www/blog.justinwflory.com/logs/"
    mode: 0755
    group: nginx
    owner: nginx
    seuser: system_u
    setype: httpd_log_t

- name: copy favicon.ico
  copy:
    src: "{{ item }}"
    dest: "/var/www/blog.justinwflory.com/html/{{ item }}"
    mode: 0664
    group: www-admin<commit_msg>blog: Fix updating WordPress from browser<commit_after>---
# CAVEAT: This role requires LetsEncrypt SSL certs and PHP-FPM to already be in place.
# For future reference: https://certbot-dns-cloudflare.readthedocs.io/en/latest/

- name: (hack) erase conflicting mariadb-libs package
  package:
    state: absent
    name: mariadb-libs

- name: install MariaDB
  package:
    state: present
    name:
      - mariadb101u-server

- name: start/enable MariaDB
  service:
    name: mariadb
    state: started
    enabled: yes

- name: create server block root directory
  file:
    state: directory
    path: "/var/www/blog.justinwflory.com/"
    mode: 0755
    seuser: system_u
    setype: httpd_sys_content_t

- name: nginx - create html directory
  file:
    state: directory
    path: "/var/www/blog.justinwflory.com/html/"
    mode: 0775
    group: www-admin
    owner: php-fpm
    seuser: system_u
    setype: httpd_sys_rw_content_t

- name: nginx - create logs directory
  file:
    state: directory
    path: "/var/www/blog.justinwflory.com/logs/"
    mode: 0755
    group: nginx
    owner: nginx
    seuser: system_u
    setype: httpd_log_t

- name: copy favicon.ico
  copy:
    src: "{{ item }}"
    dest: "/var/www/blog.justinwflory.com/html/{{ item }}"
    mode: 0664
    group: www-admin
{'fraction_non_alphanumeric': 0.10269426005466614, 'fraction_numerical': 0.01483795392424834, 'mean_word_length': 2.7565982404692084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 13, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3514021', 'n_tokens_mistral': 953, 'n_tokens_neox': 911, 'n_words': 240}