<commit_before>---
  - name: PHP | install php packages
    apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=3600
    with_items:
     - php5=5.3.3
     - php-apc
     - php-pear
     - php5-cli
     - php5-common
     - php5-dev
     - php5-gd
     - php5-memcached
     - php5-mysql
     - php5-xmlrpc
     - php-soap
     - php5-curl
     - php5-ldap
     - php5-mcrypt
    tags: php
    sudo: true
    notify:
      - restart apache

- name: PHP | change php apache2 memory_limit
  lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?memory_limit =" insertafter="^[#|;]?memory_limit =" line="memory_limit = 256M"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php cli memory_limit
  lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?memory_limit =" insertafter="^[#|;]?memory_limit =" line="memory_limit = 256M"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php apache2 display_errors
  lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?display_errors =" insertafter="^[#|;]?display_errors =" line="display_errors = 1"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php cli display_errors
  lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?display_errors =" insertafter="^[#|;]?display_errors =" line="display_errors = 1"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php apache2 display_startup_errors
  lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?display_startup_errors =" insertafter="^[#|;]?display_startup_errors =" line="display_startup_errors = 1"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php cli display_startup_errors
  lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?display_startup_errors =" insertafter="^[#|;]?display_startup_errors =" line="display_startup_errors = 1"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php apache2 html_errors
  lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?html_errors =" insertafter="^[#|;]?html_errors =" line="html_errors = 1"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php cli html_errors
  lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?html_errors =" insertafter="^[#|;]?html_errors =" line="html_errors = 1"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php apache2 date_timezone
  lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?date_timezone =" insertafter="^[#|;]?date_timezone =" line="date_timezone = 'America/Denver'"
  tags: php
  sudo: true
  notify:
    - restart apache

- name: PHP | change php cli date_timezone
  lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?date_timezone =" insertafter="^[#|;]?date_timezone =" line="date_timezone = 'America/Denver'"
  tags: php
  sudo: true
  notify:
    - restart apache

# - name: PHP | change php apache2 date.timezone (php 5.4+)
#   lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?date.timezone =" insertafter="^[#|;]?date.timezone =" line="date.timezone = 'America/Denver'"
#   tags: php
#   sudo: true
#   notify:
#     - restart apache
#
# - name: PHP | change php cli date.timezone (php 5.4+)
#   lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?date.timezone =" insertafter="^[#|;]?date.timezone =" line="date.timezone = 'America/Denver'"
#   tags: php
#   sudo: true
#   notify:
#     - restart apache

- name: PHP | Install PECL uploadprogress
  command: pecl install uploadprogress creates=/usr/lib/php5/20100525/uploadprogress.so
  tags: php
  sudo: true
  when: php_pecl_uploadprogress is defined and php_pecl_uploadprogress == "y"

- name: PHP | add PECL uploadprogress apache php.ini setting
  lineinfile: dest=/etc/php5/apache2/php.ini state=present line="extension=uploadprogress.so"
  tags: php
  sudo: true
  when: php_pecl_uploadprogress is defined and php_pecl_uploadprogress == "y"
  notify:
    - restart apache<commit_msg>Added prefixes to command names.<commit_after>---
  - name: PHP | Install php packages
    apt: pkg={{ item }} state=present update_cache=yes
    with_items:
     - php5=5.3.3
     - php-apc
     - php-pear
     - php5-cli
     - php5-common
     - php5-dev
     - php5-gd
     - php5-memcached
     - php5-mysql
     - php5-xmlrpc
     - php-soap
     - php5-curl
     - php5-ldap
     - php5-mcrypt
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php apache2 memory_limit
    lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?memory_limit =" insertafter="^[#|;]?memory_limit =" line="memory_limit = 256M"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php cli memory_limit
    lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?memory_limit =" insertafter="^[#|;]?memory_limit =" line="memory_limit = 256M"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php apache2 display_errors
    lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?display_errors =" insertafter="^[#|;]?display_errors =" line="display_errors = 1"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php cli display_errors
    lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?display_errors =" insertafter="^[#|;]?display_errors =" line="display_errors = 1"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php apache2 display_startup_errors
    lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?display_startup_errors =" insertafter="^[#|;]?display_startup_errors =" line="display_startup_errors = 1"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php cli display_startup_errors
    lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?display_startup_errors =" insertafter="^[#|;]?display_startup_errors =" line="display_startup_errors = 1"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php apache2 html_errors
    lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?html_errors =" insertafter="^[#|;]?html_errors =" line="html_errors = 1"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php cli html_errors
    lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?html_errors =" insertafter="^[#|;]?html_errors =" line="html_errors = 1"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php apache2 date_timezone
    lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?date_timezone =" insertafter="^[#|;]?date_timezone =" line="date_timezone = 'America/Denver'"
    sudo: true
    notify:
      - restart apache

  - name: PHP | Change php cli date_timezone
    lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?date_timezone =" insertafter="^[#|;]?date_timezone =" line="date_timezone = 'America/Denver'"
    sudo: true
    notify:
      - restart apache

  # - name: PHP | change php apache2 date.timezone (php 5.4+)
  #   lineinfile: dest=/etc/php5/apache2/php.ini regexp="^[#|;]?date.timezone =" insertafter="^[#|;]?date.timezone =" line="date.timezone = 'America/Denver'"
  #   sudo: true
  #   notify:
  #     - restart apache
  #
  # - name: PHP | change php cli date.timezone (php 5.4+)
  #   lineinfile: dest=/etc/php5/cli/php.ini regexp="^[#|;]?date.timezone =" insertafter="^[#|;]?date.timezone =" line="date.timezone = 'America/Denver'"
  #   sudo: true
  #   notify:
  #     - restart apache

  - name: PHP | Install PECL uploadprogress
    command: pecl install uploadprogress creates=/usr/lib/php5/20100525/uploadprogress.so
    sudo: true
    when: php_pecl_uploadprogress is defined and php_pecl_uploadprogress == "y"

  - name: PHP | Add PECL uploadprogress apache php.ini setting
    lineinfile: dest=/etc/php5/apache2/php.ini state=present line="extension=uploadprogress.so"
    sudo: true
    when: php_pecl_uploadprogress is defined and php_pecl_uploadprogress == "y"
    notify:
      - restart apache
{'fraction_non_alphanumeric': 0.15220377075789737, 'fraction_numerical': 0.01673117742539643, 'mean_word_length': 3.5075970737197526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4489936', 'n_tokens_mistral': 3209, 'n_tokens_neox': 2874, 'n_words': 598}