diff --git a/playbooks/rpi-basics.yaml b/playbooks/rpi-basics.yaml index fb3e557..3bbbc90 100644 --- a/playbooks/rpi-basics.yaml +++ b/playbooks/rpi-basics.yaml @@ -8,3 +8,6 @@ - name: Include the rpi_watchdog role include_role: name: rpi_watchdog + - name: Include configure_vim role + include_role: + name: configure_vim diff --git a/roles/configure_vim/tasks/main.yaml b/roles/configure_vim/tasks/main.yaml new file mode 100644 index 0000000..8fc08a4 --- /dev/null +++ b/roles/configure_vim/tasks/main.yaml @@ -0,0 +1,21 @@ +--- +- name: Performing APT cache update + ansible.builtin.apt: + upgrade: no + update_cache: yes + cache_valid_time: 86400 + become: true + become_method: sudo + +- name: Install vim + ansible.builtin.package: + name: + - vim + state: latest + become: true + become_method: sudo + +- name: Download vim config from aperture (current user) + ansible.builtin.get_url: + dest: ~/.vimrc + url: https://aperture.dismyserver.net/.vimrc diff --git a/roles/rpi_scripts/tasks/main.yaml b/roles/rpi_scripts/tasks/main.yaml index 2cd43b3..579be9c 100644 --- a/roles/rpi_scripts/tasks/main.yaml +++ b/roles/rpi_scripts/tasks/main.yaml @@ -1,9 +1,9 @@ --- -# Model script - name: Confirm directory structure ansible.builtin.file: path: /home/pi/bin state: directory +# Model script - name: Ensure raspberry pi model script is present ansible.builtin.copy: src: rpi-model.sh @@ -11,10 +11,6 @@ mode: '0755' force: yes # Temperature script -- name: Confirm directory structure - ansible.builtin.file: - path: /home/pi/bin - state: directory - name: Ensure raspberry pi temp script is present ansible.builtin.copy: src: rpi-temp.sh