-numerous changes to work with Raspbian 10
-redo of some roles, particularly GUI -modifications to support working from a "Raspbian Lite" install
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
username=demo
|
||||
password=Demo123
|
||||
domain=DEMO
|
||||
|
||||
username=demo
|
||||
password=Demo123
|
||||
domain=DEMO
|
||||
|
||||
|
||||
2
roles/smbclient/files/smb-session.sh
Executable file → Normal file
2
roles/smbclient/files/smb-session.sh
Executable file → Normal file
@@ -13,6 +13,6 @@ if pgrep -f test_file >/dev/null
|
||||
then
|
||||
exit 0
|
||||
else
|
||||
smbclient //192.168.198.2/share -c "get $file" -A ~/.credentials
|
||||
smbclient //192.168.88.230/share -c "get $file" -A ~/.credentials
|
||||
fi
|
||||
|
||||
|
||||
48
roles/smbclient/tasks/main.yaml
Executable file → Normal file
48
roles/smbclient/tasks/main.yaml
Executable file → Normal file
@@ -1,24 +1,24 @@
|
||||
---
|
||||
- name: enable cron job for smb traffic
|
||||
cron:
|
||||
name: "smbtraff"
|
||||
minute: "*/60"
|
||||
hour: "7-18"
|
||||
weekday: "1-5"
|
||||
job: "/usr/bin/perl -e 'sleep int rand 3500' && /home/pi/scripts/smb-session.sh"
|
||||
tags: smbtraff_cron
|
||||
- name: copy smb-session.sh to scripts directory
|
||||
copy:
|
||||
src: "{{ role_path }}/files/smb-session.sh"
|
||||
dest: /home/pi/scripts/smb-session.sh
|
||||
owner: pi
|
||||
group: pi
|
||||
mode: a+x
|
||||
tags: smbtraff_script
|
||||
- name: copy credentials to user directory
|
||||
copy:
|
||||
src: "{{ role_path }}/files/.credentials"
|
||||
dest: /home/pi
|
||||
owner: pi
|
||||
group: pi
|
||||
tags: smbtraff_credentials
|
||||
---
|
||||
- name: enable cron job for smb traffic
|
||||
cron:
|
||||
name: "smbtraff"
|
||||
minute: "*/60"
|
||||
hour: "7-18"
|
||||
weekday: "1-5"
|
||||
job: "/usr/bin/perl -e 'sleep int rand 3500' && /home/pi/scripts/smb-session.sh"
|
||||
tags: smbtraff_cron
|
||||
- name: copy smb-session.sh to scripts directory
|
||||
copy:
|
||||
src: "{{ role_path }}/files/smb-session.sh"
|
||||
dest: /home/pi/scripts/smb-session.sh
|
||||
owner: pi
|
||||
group: pi
|
||||
mode: a+x
|
||||
tags: smbtraff_script
|
||||
- name: copy credentials to user directory
|
||||
copy:
|
||||
src: "{{ role_path }}/files/.credentials"
|
||||
dest: /home/pi
|
||||
owner: pi
|
||||
group: pi
|
||||
tags: smbtraff_credentials
|
||||
|
||||
Reference in New Issue
Block a user