mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
rework
This commit is contained in:
parent
700cdc9a07
commit
a5c8dcc904
1 changed files with 13 additions and 9 deletions
|
@ -76,13 +76,7 @@
|
|||
include_tasks: roles/network/tasks/squid.yml
|
||||
when: squid_install and squid_installed is undefined
|
||||
|
||||
- name: Link /usr/local/sbin/netwarn to {{ iiab_dir }}/scripts/netwarn
|
||||
file:
|
||||
src: "{{ iiab_dir }}/scripts/netwarn.sh"
|
||||
dest: /usr/local/sbin/netwarn
|
||||
mode: 0755
|
||||
state: link
|
||||
|
||||
# all installs
|
||||
- name: Install /usr/bin/iiab-internet-on|off from template (root:root by default)
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
|
@ -100,11 +94,21 @@
|
|||
path: /usr/share/mate/autostart/
|
||||
register: mate_dir
|
||||
|
||||
# contents work with mate as of 'switch to using dash via sh'
|
||||
# 'text' is up for debate other structural changes I do not recommend JV
|
||||
# if need be cut a second version for RasPiOS
|
||||
|
||||
- name: Link /usr/local/sbin/netwarn to {{ iiab_dir }}/scripts/netwarn
|
||||
file:
|
||||
src: "{{ iiab_dir }}/scripts/netwarn.sh"
|
||||
dest: /usr/local/sbin/netwarn
|
||||
state: link
|
||||
when: mate_dir.stat.exists and mate_dir.stat.isdir
|
||||
|
||||
- name: Link /usr/share/mate/autostart/netwarn-iiab-network.desktop to {{ iiab_dir }}/scripts/netwarn-iiab-network.desktop
|
||||
file:
|
||||
src: "{{ iiab_dir }}/scripts/netwarn"
|
||||
src: "{{ iiab_dir }}/scripts/netwarn-iiab-network.desktop"
|
||||
dest: /usr/share/mate/autostart/netwarn-iiab-network.desktop
|
||||
mode: '0755'
|
||||
state: link
|
||||
when: mate_dir.stat.exists and mate_dir.stat.isdir
|
||||
|
||||
|
|
Loading…
Reference in a new issue