<commit_before>---

- name: Configure hostname in /etc/rc.conf
  lineinfile: >
    dest="/etc/rc.conf"
    regexp="{{ item.regexp }}"
    line="{{ item.line }}"
    backup="yes"
  with_items:
    - { regexp: "^hostname",  line: "hostname=\"{{rc_conf_hostname}}\""}
  notify: set hostname
  tags: freebsd_postinstall_rc_conf_hostname

# DO overwrites hostname from rc.conf
- name: Configure hostname in /etc/rc.digitalocean.d/droplet.conf
  lineinfile: >
    dest="/etc/rc.digitalocean.d/droplet.conf"
    regexp="{{ item.regexp }}"
    line="{{ item.line }}"
    backup="yes"
  with_items:
    - { regexp: "^hostname",  line: "hostname=\"{{rc_conf_hostname}}\""}
  when: digitalocean == "yes"
  tags:
    - freebsd_postinstall_rc_conf_hostname_digitalocean
    - freebsd_postinstall_rc_conf_hostname<commit_msg>Formatting of hostname.<commit_after>---

- name: Configure hostname in /etc/rc.conf
  lineinfile: >
    dest="/etc/rc.conf"
    regexp="{{ item.regexp }}"
    line="{{ item.line }}"
    backup="yes"
  with_items:
    - { regexp: "^hostname",  line: "hostname=\"{{ rc_conf_hostname }}\""}
  notify: set hostname
  tags: fp_rc_conf_hostname

# DO overwrites hostname from rc.conf
- name: Configure hostname in /etc/rc.digitalocean.d/droplet.conf
  lineinfile: >
    dest="/etc/rc.digitalocean.d/droplet.conf"
    regexp="{{ item.regexp }}"
    line="{{ item.line }}"
    backup="yes"
  with_items:
    - { regexp: "^hostname",  line: "hostname=\"{{ rc_conf_hostname }}\""}
  when: digitalocean|lower == "yes"
  tags:
    - fp_rc_conf_hostname_digitalocean
    - fp_rc_conf_hostname

# EOF
...
{'fraction_non_alphanumeric': 0.16604244694132334, 'fraction_numerical': 0.0, 'mean_word_length': 3.515492957746479, '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': '7455387', 'n_tokens_mistral': 593, 'n_tokens_neox': 597, 'n_words': 106}