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