added vim scripts
This commit is contained in:
parent
48abdc5f6b
commit
7505a6e336
@ -8,3 +8,6 @@
|
|||||||
- name: Include the rpi_watchdog role
|
- name: Include the rpi_watchdog role
|
||||||
include_role:
|
include_role:
|
||||||
name: rpi_watchdog
|
name: rpi_watchdog
|
||||||
|
- name: Include configure_vim role
|
||||||
|
include_role:
|
||||||
|
name: configure_vim
|
||||||
|
21
roles/configure_vim/tasks/main.yaml
Normal file
21
roles/configure_vim/tasks/main.yaml
Normal file
@ -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
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
# Model script
|
|
||||||
- name: Confirm directory structure
|
- name: Confirm directory structure
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /home/pi/bin
|
path: /home/pi/bin
|
||||||
state: directory
|
state: directory
|
||||||
|
# Model script
|
||||||
- name: Ensure raspberry pi model script is present
|
- name: Ensure raspberry pi model script is present
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: rpi-model.sh
|
src: rpi-model.sh
|
||||||
@ -11,10 +11,6 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
force: yes
|
force: yes
|
||||||
# Temperature script
|
# Temperature script
|
||||||
- name: Confirm directory structure
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /home/pi/bin
|
|
||||||
state: directory
|
|
||||||
- name: Ensure raspberry pi temp script is present
|
- name: Ensure raspberry pi temp script is present
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: rpi-temp.sh
|
src: rpi-temp.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user