<commit_before>---
# Run with ansible-playbook <filename> -k
# # ansible-playbook -i k8s_hosts-all.yml pb-nginx.yml -b
# make sure to add IPaddress of machines you want to manage to /etc/ansible/hosts first
#
#  Make sure to run the pb-init.yml file before running any other playbooks.
#  It will install all dependencies 
#
#  By: 
#  _____ _          _     _              _                 _____                  
# /  __ \ |        (_)   | |            | |               |  __ \                  ®
# | /  \/ |__  _ __ _ ___| |_ ___  _ __ | |__   ___ _ __  | |  \/_ __ __ _ _   _  
# | |   | '_ \| '__| / __| __/ _ \| '_ \| '_ \ / _ \ '__| | | __| '__/ _` | | | | 
# | \__/\ | | | |  | \__ \ || (_) | |_) | | | |  __/ |    | |_\ \ | | (_| | |_| | 
#  \____/_| |_|_|  |_|___/\__\___/| .__/|_| |_|\___|_|     \____/_|  \__,_|\__, | 
#                                 | |                                       __/ | 
#                                 |_|                                      |___/  
#  https://github.com/c2theg
#  Copyright (c) 2001-2018
# 
#
#    Version: 0.0.1
#    Updated: 8/15/18

#------------------------------------------
- hosts: all
#  gather_facts: False
#  remote_user: ubuntu
#  become: yes
#  become_user: root
#  become_method: sudo
#------------------------------------------
  vars:
    # used for filepaths
    site_name: "chrisgray"
    # used in the website's markup
    site_title: "Test 1"
    # used in the web server config file
    site_url: "testsite1.com"
#------------------------------------------

  tasks:
    - name: Install Nginx
      package: name=nginx state=latest

    - name: Create website directory
      file: path="/var/www/{{ site_name }}" state=directory " state=directory mode=0755

    - name: Create main nginx config file
      template:
        src: "template/nginx.conf"<commit_msg>Update pb-nginx.yml<commit_after>---
# Run with ansible-playbook <filename> -k
# # ansible-playbook -i k8s_hosts-all.yml pb-nginx.yml -b
# make sure to add IPaddress of machines you want to manage to /etc/ansible/hosts first
#
#  Make sure to run the pb-init.yml file before running any other playbooks.
#  It will install all dependencies 
#
#  By: 
#  _____ _          _     _              _                 _____                  
# /  __ \ |        (_)   | |            | |               |  __ \                  ®
# | /  \/ |__  _ __ _ ___| |_ ___  _ __ | |__   ___ _ __  | |  \/_ __ __ _ _   _  
# | |   | '_ \| '__| / __| __/ _ \| '_ \| '_ \ / _ \ '__| | | __| '__/ _` | | | | 
# | \__/\ | | | |  | \__ \ || (_) | |_) | | | |  __/ |    | |_\ \ | | (_| | |_| | 
#  \____/_| |_|_|  |_|___/\__\___/| .__/|_| |_|\___|_|     \____/_|  \__,_|\__, | 
#                                 | |                                       __/ | 
#                                 |_|                                      |___/  
#  https://github.com/c2theg
#  Copyright (c) 2001-2018
# 
#
#    Version: 0.0.1
#    Updated: 8/15/18

#------------------------------------------
- hosts: all
#  gather_facts: False
#  remote_user: ubuntu
#  become: yes
#  become_user: root
#  become_method: sudo
#------------------------------------------
  vars:
    # used for filepaths
    site_name: "chrisgray"
    # used in the website's markup
    site_title: "Test 1"
    # used in the web server config file
    site_url: "testsite1.com"
#------------------------------------------
#sudo add-apt-repository -y ppa:chris-lea/nginx-devel
#sudo apt-get -y update && apt-get -y install nginx nginx-common nginx-full fcgiwrap unzip gcc make libpcre3-dev zlib1g-dev


  tasks:
    - name: Install Nginx
      package: name=nginx state=latest

    - name: Create website directory
      file: path="/var/www/{{ site_name }}" state=directory " state=directory mode=0755

    - name: Create main nginx config file
      template:
        src: "template/nginx.conf"
{'fraction_non_alphanumeric': 0.20102960102960102, 'fraction_numerical': 0.01287001287001287, 'mean_word_length': 1.2566782810685249, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2106360', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1281, 'n_words': 246}