Add supernode default config
This commit is contained in:
parent
07cd8bc7b6
commit
dca98d3645
@ -9,7 +9,7 @@
|
||||
user: root
|
||||
gather_facts: False
|
||||
vars:
|
||||
snversion: master_v3.0.12
|
||||
snversion: master_v3.0.14
|
||||
batmanversion: v2015.2
|
||||
common_required_packages:
|
||||
- git
|
||||
@ -62,7 +62,9 @@
|
||||
- authorized_keys
|
||||
logrotate_config:
|
||||
- logrotate.conf
|
||||
|
||||
supernode_config:
|
||||
- supernode.mode
|
||||
- loadbalancing.mode
|
||||
|
||||
tasks:
|
||||
- name: Remove cdrom in sources.list
|
||||
@ -184,10 +186,12 @@
|
||||
file: path=/opt/freifunk state=directory mode=0755
|
||||
- name: Create keepalive directory
|
||||
file: path=/etc/supernode-status state=directory mode=0755
|
||||
- name: Supernode loadbalancing default
|
||||
lineinfile: dest=/etc/supernode-status/loadbalancing.mode regexp=^0 line=0
|
||||
- name: Supernode mode default
|
||||
lineinfile: dest=/etc/supernode-status/supernode.mode regexp=^0 line=0
|
||||
- name: Create supernode config files
|
||||
file: path=/etc/supernode-status/{{ item }} state=touch owner=root group=root mode=0644
|
||||
with_items: supernode_config
|
||||
- name: Supernode set default mode
|
||||
lineinfile: dest=/etc/supernode-status/{{ item }} regexp=^0 line=0
|
||||
with_items: supernode_config
|
||||
- name: Check gateway / keepalive script supernode
|
||||
copy: src=./files/{{ item }} dest=/opt/freifunk owner=root group=root mode=0500
|
||||
with_items: check_gw_script
|
||||
|
Loading…
Reference in New Issue
Block a user