---
- name: ensure setup dependencies
  ansible.builtin.apt:
    name:
      - ansible
      - git

- name: install apt-transport-https
  ansible.builtin.apt: name=apt-transport-https

- name: install https sources list
  ansible.builtin.template:
    src: sources.list.j2
    owner: root
    group: root
    mode: 0644
    dest: /etc/apt/sources.list

- name: install https raspi sources list
  ansible.builtin.template:
    src: raspi.list.j2
    owner: root
    group: root
    mode: 0644
    dest: /etc/apt/sources.list.d/raspi.list

- name: install firefox
  ansible.builtin.apt: name=firefox-esr

- name: ensure openssh is installed
  ansible.builtin.apt: name=openssh-server

- name: ensure sshd is running and enabled
  ansible.builtin.systemd: name=ssh.service enabled=yes state=started

- name: copy sshd config
  ansible.builtin.copy:
    src: sshd_config
    owner: root
    group: root
    mode: 0644
    dest: /etc/ssh/sshd_config
    validate: /usr/sbin/sshd -tf %s
  notify:
    - restart sshd

- name: install other applications
  ansible.builtin.apt:
    name:
      - htop
      - libarchive-tools
      - lm-sensors
      - ripgrep
      - screen
      - vim

- include: boot.yml

---
- name: ensure setup dependencies
  ansible.builtin.apt:
    name:
      - ansible
      - git

- name: install apt-transport-https
  ansible.builtin.apt: name=apt-transport-https

- name: install https sources list
  ansible.builtin.template:
    src: sources.list.j2
    owner: root
    group: root
    mode: 0644
    dest: /etc/apt/sources.list

- name: install https raspi sources list
  ansible.builtin.template:
    src: raspi.list.j2
    owner: root
    group: root
    mode: 0644
    dest: /etc/apt/sources.list.d/raspi.list

- name: install firefox
  ansible.builtin.apt: name=firefox-esr

- name: ensure openssh is installed
  ansible.builtin.apt: name=openssh-server

- name: ensure sshd is running and enabled
  ansible.builtin.systemd: name=ssh.service enabled=yes state=started

- name: copy sshd config
  ansible.builtin.copy:
    src: sshd_config
    owner: root
    group: root
    mode: 0644
    dest: /etc/ssh/sshd_config
    validate: /usr/sbin/sshd -tf %s
  notify:
    - restart sshd

- name: install other applications
  ansible.builtin.apt:
    name:
      - htop
      - libarchive-tools
      - lm-sensors
      - ripgrep
      - screen
      - vim

- name: install backup applications
  ansible.builtin.apt:
    name:
      - borg
      - rclone

- include: boot.yml

Install borg and rclone on raspberry pi
Install borg and rclone on raspberry pi
