<commit_before># The tasks here are left as examples and should be removed/replaced by the
# charm author. Some things to note:
# 1. All charm config values are available as template variables
#    e.g. repo -> {{repo}}, app-name -> {{app_name}} (note underscore)
# 2. Along with charm config values, the following variables are also
#    made available as template vars:
#    charm_dir
#    local_unit
#    unit_private_address
#    unit_public_address
# 3. Use tags to control when each task is executed. The tags list should
#    contain one or more hook names.

- hosts: all
  tasks:

    - name: Install required packages.
      apt: pkg={{ item }} state=latest update_cache=yes
      with_items:
        - docker.io
      when: latest == false
      tags:
        - install
        - upgrade-charm

    - name: Install required packages from upstream
      include: playbooks/upstream-docker.yaml
      when: latest == true
      tags:
        - install
        - upgrade-charm


    - name: Add Docker Group
      group: name=docker state=present
      tags:
        - install
        - upgrade-charm

    - name: Add ubuntu to Docker group
      user: name=ubuntu state=present groups="docker"
      tags:
        - install
<commit_msg>Correct an oversight where including playbooks/upstream-docker.yaml was including an extra playbooks to the path<commit_after># The tasks here are left as examples and should be removed/replaced by the
# charm author. Some things to note:
# 1. All charm config values are available as template variables
#    e.g. repo -> {{repo}}, app-name -> {{app_name}} (note underscore)
# 2. Along with charm config values, the following variables are also
#    made available as template vars:
#    charm_dir
#    local_unit
#    unit_private_address
#    unit_public_address
# 3. Use tags to control when each task is executed. The tags list should
#    contain one or more hook names.

- hosts: all
  tasks:

    - name: Install required packages.
      apt: pkg={{ item }} state=latest update_cache=yes
      with_items:
        - docker.io
      when: latest == false
      tags:
        - install
        - upgrade-charm

    - name: Install required packages from upstream
      include: upstream-docker.yaml
      when: latest == true
      tags:
        - install
        - upgrade-charm


    - name: Add Docker Group
      group: name=docker state=present
      tags:
        - install
        - upgrade-charm

    - name: Add ubuntu to Docker group
      user: name=ubuntu state=present groups="docker"
      tags:
        - install

{'fraction_non_alphanumeric': 0.07760962359332557, 'fraction_numerical': 0.002328288707799767, 'mean_word_length': 2.4100529100529102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '5768192', 'n_tokens_mistral': 733, 'n_tokens_neox': 692, 'n_words': 279}