<commit_before>---
# file: main.yml
- name: apt-get update
  apt: update_cache=yes

- name: install ufw
  apt: name=ufw state=present

- name: 'config ufw: reset ufw'
  ufw: state=reset

- name: 'config ufw: add /etc/default/ufw'
  template: src=ufw.j2 dest=/etc/default/ufw

- name: 'config ufw: add /etc/ufw/sysctl.conf'
  template: src=sysctl.conf.j2 dest=/etc/ufw/sysctl.conf

- name: 'config ufw: add /etc/ufw/before.rules'
  template: src=before.rules.j2 dest=/etc/ufw/before.rules

- name: 'config ufw: allow ssh'
  ufw: rule=allow port=22 proto=tcp

- name: 'config ufw: allow docker'
  ufw: rule=allow port=2375 proto=tcp

- name: 'config ufw: reject all other traffic'
  ufw: state=enabled policy=deny

- name: Speed up Ansible by purging landscape-common
  apt: pkg=landscape-common state=absent purge=yes

- name: install mailutils
  apt: name=mailutils state=present

- name: install unattended-upgrades
  apt: name=unattended-upgrades state=present

- name: config unattended-upgrades 1/2
  template: src=10periodic.j2 dest=/etc/apt/apt.conf.d/10periodic
- name: config unattended-upgrades 2/2
  template: src=50unattended-upgrades.j2 dest=/etc/apt/apt.conf.d/50unattended-upgrades

- name: config openssh
  template: src=sshd_config.j2 dest=/etc/ssh/sshd_config

- name: config pam 1/2
  template: src=login.j2 dest=/etc/pam.d/login

- name: config pam 2/2
  template: src=sshd.j2 dest=/etc/pam.d/sshd

- name: install git
  apt: name=git state=present

- name: config git
  template: src=.gitconfig.j2 dest=/root/.gitconfig

- name: install zip
  apt: name=zip state=present

- name: install fish
  apt: name=fish state=present

- name: config fish 1/2
  user: name=root shell=/usr/bin/fish

- name: config fish 2/2
  template: src=config.fish.j2 dest=/root/.config/fish/config.fish

- name: install ncdu
  apt: name=ncdu state=present

- name: install sl
  apt: name=sl state=present

- name: install toilet
  apt: name=toilet state=present

- name: install screenfetch
  get_url: url=https://raw.github.com/KittyKatt/screenFetch/master/screenfetch-dev dest=/usr/local/bin/screenfetch

- name: config screenfetch
  file: path=/usr/local/bin/screenfetch mode=0755

- name: install whois
  apt: name=whois state=present<commit_msg>Update main.yml<commit_after>---
# file: main.yml
- name: apt-get update
  apt: update_cache=yes

- name: install ufw
  apt: name=ufw state=present

- name: 'config ufw: reset ufw'
  ufw: state=reset

- name: 'config ufw: add /etc/default/ufw'
  template: src=ufw.j2 dest=/etc/default/ufw

- name: 'config ufw: add /etc/ufw/sysctl.conf'
  template: src=sysctl.conf.j2 dest=/etc/ufw/sysctl.conf

- name: 'config ufw: add /etc/ufw/before.rules'
  template: src=before.rules.j2 dest=/etc/ufw/before.rules

- name: 'config ufw: allow ssh'
  ufw: rule=allow port=22 proto=tcp

- name: 'config ufw: allow docker'
  ufw: rule=allow port=2375 proto=tcp

- name: 'config ufw: reject all other traffic'
  ufw: state=enabled policy=deny

- name: Speed up Ansible by purging landscape-common
  apt: pkg=landscape-common state=absent purge=yes

- name: install mailutils
  apt: name=mailutils state=present

- name: install unattended-upgrades
  apt: name=unattended-upgrades state=present

- name: config unattended-upgrades 1/2
  template: src=10periodic.j2 dest=/etc/apt/apt.conf.d/10periodic
- name: config unattended-upgrades 2/2
  template: src=50unattended-upgrades.j2 dest=/etc/apt/apt.conf.d/50unattended-upgrades

- name: config openssh
  template: src=sshd_config.j2 dest=/etc/ssh/sshd_config

- name: config pam 1/2
  template: src=login.j2 dest=/etc/pam.d/login

- name: config pam 2/2
  template: src=sshd.j2 dest=/etc/pam.d/sshd

- name: install git
  apt: name=git state=present

- name: config git
  template: src=.gitconfig.j2 dest=/root/.gitconfig

- name: install zip
  apt: name=zip state=present

- name: install fish
  apt: name=fish state=present

- name: config fish 1/2
  user: name=root shell=/usr/bin/fish

- name: config fish 2/2
  template: src=config.fish.j2 dest=/root/.config/fish/config.fish

- name: install ncdu
  apt: name=ncdu state=present

- name: install sl
  apt: name=sl state=present

- name: install toilet
  apt: name=toilet state=present

- name: install screenfetch
  get_url: url=https://raw.githubusercontent.com/svenvandescheur/screenFetch/master/screenfetch-dev dest=/usr/local/bin/screenfetch

- name: config screenfetch
  file: path=/usr/local/bin/screenfetch mode=0755

- name: install whois
  apt: name=whois state=present
{'fraction_non_alphanumeric': 0.12436266903125692, 'fraction_numerical': 0.017734426956328972, 'mean_word_length': 3.9527991218441274, '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': '6690093', 'n_tokens_mistral': 1744, 'n_tokens_neox': 1650, 'n_words': 408}