<commit_before>---
# Webservers tasks

# User and groups setup

- name: Create user.
  user: name={{ project_name }} state=present

# Get the files, including the configuration files that are needed to setup the
# system

- name: Create the project directory.
  file: state=directory path=/home/ubuntu/projects/{{ project_name }}
    owner={{ usr }} group={{ usr }}

# Clone from Git the master project
- name: Git clone
  git: repo={{ galleria_private_url }}
    dest=/home/ubuntu/projects/{{ project_name }}
    accept_hostkey=True 

  #Not perfect as really wanted to do the git with the required user rather than change
  #ownwer and group later.  But need to do some commands with sudo
- name: Change owner 
  file: state=directory path=/home/ubuntu/projects/{{ project_name }}
    owner={{ usr }} group={{ usr }}
    recurse=yes
  
# Clone from Git the private project settings
- name: Git clone private settings assumed private github
  git: repo={{ galleria_private }}https://{{ git_personal_access_token }}@github.com/drummonds/{{ project_name }}.git
    dest=/home/ubuntu/projects/{{ project_name }}
    accept_hostkey=True

  #Not perfect as really wanted to do the git with the required user rather than change
  #ownwer and group later.  But need to do some commands with sudo
- name: Change owner
  file: state=directory path=/home/ubuntu/projects/{{ project_name }}
    owner={{ usr }} group={{ usr }}<commit_msg>Fixing bug in git deployment of galleria_private<commit_after>---
# Webservers tasks

# User and groups setup

- name: Create user.
  user: name={{ project_name }} state=present

# Get the files, including the configuration files that are needed to setup the
# system

- name: Create the project directory.
  file: state=directory path=/home/ubuntu/projects/{{ project_name }}
    owner={{ usr }} group={{ usr }}

# Clone from Git the master project
- name: Git clone
  git: repo=https://{{ git_personal_access_token }}@github.com/drummonds/{{ project_name }}.git
    dest=/home/ubuntu/projects/{{ project_name }}
    accept_hostkey=True 

  #Not perfect as really wanted to do the git with the required user rather than change
  #ownwer and group later.  But need to do some commands with sudo
- name: Change owner 
  file: state=directory path=/home/ubuntu/projects/{{ project_name }}
    owner={{ usr }} group={{ usr }}
    recurse=yes
  
# Clone from Git the private project settings
- name: Git clone private settings assumed private github
  git: repo={{ galleria_private_url }}
    dest=/home/ubuntu/projects/{{ project_name }}
    accept_hostkey=True

  #Not perfect as really wanted to do the git with the required user rather than change
  #ownwer and group later.  But need to do some commands with sudo
- name: Change owner
  file: state=directory path=/home/ubuntu/projects/{{ project_name }}
    owner={{ usr }} group={{ usr }}
{'fraction_non_alphanumeric': 0.10456605088881143, 'fraction_numerical': 0.0, 'mean_word_length': 3.905982905982906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '236212', 'n_tokens_mistral': 848, 'n_tokens_neox': 822, 'n_words': 326}