<commit_before>---
- name: pull ceph daemon image
  shell: "docker pull {{ ceph_mon_docker_username }}/{{ ceph_mon_docker_imagename }}"
  changed_when: false
  failed_when: false

# NOTE (leseb): we can not use docker inspect with 'format filed' because of
# https://github.com/ansible/ansible/issues/10156
- name: inspect ceph version
  shell: docker inspect docker.io/ceph/daemon | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
  changed_when: false
  failed_when: false
  run_once: true
  register: ceph_version

- set_fact:
    after_hamer=True
  when:
    ceph_version.stdout not in ['firefly','giant', 'hammer']

- name: create bootstrap directories (for or before hammer)
  file:
    path: "{{ item }}"
    state: directory
    owner: root
    group: root<commit_msg>docker: do not hardcode image and user name<commit_after>---
- name: pull ceph daemon image
  shell: "docker pull {{ ceph_mon_docker_username }}/{{ ceph_mon_docker_imagename }}"
  changed_when: false
  failed_when: false

# NOTE (leseb): we can not use docker inspect with 'format filed' because of
# https://github.com/ansible/ansible/issues/10156
- name: inspect ceph version
  shell: docker inspect docker.io/"{{ ceph_mon_docker_username }}"/"{{ ceph_mon_docker_imagename }}" | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
  changed_when: false
  failed_when: false
  run_once: true
  register: ceph_version

- set_fact:
    after_hamer=True
  when:
    ceph_version.stdout not in ['firefly','giant', 'hammer']

- name: create bootstrap directories (for or before hammer)
  file:
    path: "{{ item }}"
    state: directory
    owner: root
    group: root
{'fraction_non_alphanumeric': 0.13027959547888163, 'fraction_numerical': 0.008328375966686495, 'mean_word_length': 3.91812865497076, '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': '3810722', 'n_tokens_mistral': 586, 'n_tokens_neox': 560, 'n_words': 164}