Browse Source

Softwareinstallation für Raspis ist jetzt eigene role.

master 1.2
Olli Graf 3 years ago
parent
commit
120ea67a7a
  1. 1
      bin/borg-daily
  2. 1
      initpi.yml
  3. 5
      installsoft.yml
  4. 13
      roles/initpi/tasks/main.yml
  5. 19
      roles/installsoft/tasks/main.yml

1
bin/borg-daily

@ -39,6 +39,7 @@ borg create ${BORG_OPTS} \
--exclude /proc \
--exclude /mnt \
--exclude /tank \
--exclude /extusb \
--exclude /var/log \
"${TARGET}::${ARC_NAME}" \
/

1
initpi.yml

@ -4,6 +4,7 @@
remote_user: pi
roles:
- initpi
- installsoft
- log2ram
- disableswap

5
installsoft.yml

@ -3,7 +3,4 @@
gather_facts: false
remote_user: pi
roles:
- initpi
- log2ram
- disableswap
- installsoft

13
roles/initpi/tasks/main.yml

@ -9,19 +9,6 @@
path: /tank
state: directory
- name: copy scripts
copy:
src: bin/{{ item }}
dest: /home/pi/bin
owner: pi
group: pi
mode: '0744'
with_items:
- blini.py
- updatesys
- showtemp
- name: PI Update
become: true
apt:

19
roles/installsoft/tasks/main.yml

@ -0,0 +1,19 @@
- name: create bin dir
file:
path: ~/bin
state: directory
- name: copy scripts
copy:
src: bin/{{ item }}
dest: /home/pi/bin
owner: pi
group: pi
mode: '0744'
with_items:
- blini.py
- updatesys
- borg-daily
- showtemp
Loading…
Cancel
Save