<commit_before>---
  - name: Create wordpress database
    mysql_db: name='{{ wordpress_db_name }}'
              state=present
              login_user='{{ mysql_user }}'
              login_password='{{ <PASSWORD> }}'

  - name: Create wordpress db user and grant permissions
    mysql_user: name='{{ wordpress_db_user }}'
                password='{{ <PASSWORD> }}'
                priv='{{ wordpress_db_name }}.*:ALL'
                state=present
                login_user='{{ mysql_user }}'
                login_password='{{ <PASSWORD> }}'

  - name: Is wordpress downloaded?
    stat: path='{{ wordpress_dir }}/index.php'
    register: wp_dir

  - name: Create wordpress directory
    file: path='{{ wordpress_dir }}'
          owner='{{ deploy_user }}'
          group='{{ deploy_user }}'
          mode=0755
          state=directory
    when: wp_dir.stat.isdir is not defined

  - name: Download WordPress
    sudo: no
    command: wp core download
    args:
      chdir: '{{ wordpress_dir }}/'
    when: wp_dir.stat.isdir is not defined
    remote_user: "{{ deploy_user }}"

  - name: Configure WordPress
    sudo: no
    command: wp core config
       --path="{{ wordpress_dir }}"
       --dbname="{{ wordpress_db_name }}"
       --dbuser="{{ wordpress_db_user }}"
       --dbpass="{{ wordpress_db_user_pass }}"
       --dbprefix="{{ wordpress_db_prefix }}"
    when: wp_dir.stat.isdir is not defined
    remote_user: "{{ deploy_user }}"

  - name: Is WordPress installed?
    sudo: no
    command: wp core is-installed
    args:
      chdir: "{{ wordpress_dir }}/"
    register: wordpress_is_installed
    ignore_errors: true
    remote_user: "{{ deploy_user }}"
    changed_when: false

  - name: Install WordPress tables
    sudo: no
    command: wp core install
      --url="{{ wordpress_home_url }}"<commit_msg>allow jetpack to run offline<commit_after>---
  - name: Create wordpress database
    mysql_db: name='{{ wordpress_db_name }}'
              state=present
              login_user='{{ mysql_user }}'
              login_password='{{ <PASSWORD> }}'

  - name: Create wordpress db user and grant permissions
    mysql_user: name='{{ wordpress_db_user }}'
                password='{{ <PASSWORD> }}'
                priv='{{ wordpress_db_name }}.*:ALL'
                state=present
                login_user='{{ mysql_user }}'
                login_password='{{ <PASSWORD> }}'

  - name: Is wordpress downloaded?
    stat: path='{{ wordpress_dir }}/index.php'
    register: wp_dir

  - name: Create wordpress directory
    file: path='{{ wordpress_dir }}'
          owner='{{ deploy_user }}'
          group='{{ deploy_user }}'
          mode=0755
          state=directory
    when: wp_dir.stat.isdir is not defined

  - name: Download WordPress
    sudo: no
    command: wp core download
    args:
      chdir: '{{ wordpress_dir }}/'
    when: wp_dir.stat.isdir is not defined
    remote_user: "{{ deploy_user }}"

  - name: Configure WordPress
    sudo: no
    command: wp core config
       --path="{{ wordpress_dir }}"
       --dbname="{{ wordpress_db_name }}"
       --dbuser="{{ wordpress_db_user }}"
       --dbpass="{{ <PASSWORD>press_db_user_pass }}"
       --dbprefix="{{ wordpress_db_prefix }}"
       --extra-php="define('JETPACK_DEV_DEBUG', true);"
    when: wp_dir.stat.isdir is not defined
    remote_user: "{{ deploy_user }}"

  - name: Is WordPress installed?
    sudo: no
    command: wp core is-installed
    args:
      chdir: "{{ wordpress_dir }}/"
    register: wordpress_is_installed
    ignore_errors: true
    remote_user: "{{ deploy_user }}"
    changed_when: false

  - name: Install WordPress tables
    sudo: no
    command: wp core install
      --url="{{ wordpress_home_url }}"
{'fraction_non_alphanumeric': 0.13326197484613325, 'fraction_numerical': 0.0021407546160021407, 'mean_word_length': 2.3950953678474116, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6329543', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1118, 'n_words': 286}