You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

---
- name: Ensures basic scripts & configs set up for Raspberry Pis
hosts: raspberries
vars:
password_excluded_hosts:
- pikvm
non_raspbian_hosts:
- pikvm
pibox_hosts:
- piparcel
tasks:
- name: Set root passwords
ansible.builtin.include_role:
name: random_root_password
when: ansible_hostname not in password_excluded_hosts
- name: Ensure rpi scripts are present
ansible.builtin.include_role:
name: rpi_scripts
- name: Include the rpi_watchdog role
ansible.builtin.include_role:
name: rpi_watchdog
- name: Ensure vim config is present for pi
ansible.builtin.include_role:
name: configure_vim
when: ansible_hostname not in non_raspbian_hosts
- name: Include profile aliases
ansible.builtin.include_role:
name: profile_aliases
when: ansible_hostname not in non_raspbian_hosts
- name: Include basic package list
ansible.builtin.include_role:
name: basic_setup
when: ansible_hostname not in non_raspbian_hosts
- name: Configure pibox extras
ansible.builtin.include_role:
name: pibox_basics
when: ansible_hostname in pibox_hosts