From c23881fbe7f067fa572fec5d77da98d89b413602 Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Sat, 28 May 2016 15:47:29 +0200 Subject: [PATCH] Bugfix --- install.sn.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/install.sn.yml b/install.sn.yml index 5a8e20d..67360d1 100644 --- a/install.sn.yml +++ b/install.sn.yml @@ -3,12 +3,13 @@ # ansible troisdorf4 -u root -m raw -a "apt-get update && apt-get install python -y" - name: Install Freifunk Troisdorf super node +# hosts: FreifunkSupernodesL2TP hosts: '{{ target }}' sudo: False user: root gather_facts: False vars: - snversion: master_v3.0.14 + snversion: master_v3.0.15 batmanversion: v2015.2 common_required_packages: - git @@ -56,10 +57,10 @@ - tunneldigger.service - tunneldigger-backup.service broker_cfg: - - l2tp_broker.cfg-backup.j2 - - l2tp_broker.cfg.j2 - bind_zone_fftdf: - - named.conf.fftdf + - l2tp_broker-backup.cfg + - l2tp_broker.cfg +# bind_zone_fftdf: +# - named.conf.fftdf check_gw_script: - keepalive.sh authorized_keys: @@ -75,6 +76,8 @@ raw: "sed -i '/deb cdrom/c\\#' /etc/apt/sources.list" - name: Make this server ansible compatible raw: "apt-get update && apt-get install python -y" +# - name: Add backport repo to source list #target: /etc/apt/sources.list.d +# apt_repository: repo='deb http://http.debian.net/debian jessie-backports main' state=present - name: Update apt cache apt: update_cache=yes - name: Gathering facts @@ -127,14 +130,17 @@ shell: > apt-get install linux-headers-$(uname -r) -y when: aptupdates.changed -# Install Batman-adv and batctl # - name: Get batman-adv git: repo=https://git.open-mesh.org/batman-adv.git dest=/tmp/batman-adv when: aptupdates.changed register: getbatman +# - name: Get batman-adv no rebrotcast patch +# get_url: url=http://map.freifunk-moehne.de/stuff/1001-batman-adv-introduce-no_rebroadcast-option.patch dest=/tmp/batman-adv/1001-batman-adv-introduce-no_rebroadcast-option.patch +# when: getbatman.changed - name: Install batman-adv shell: cd /tmp/batman-adv && git checkout {{ batmanversion }} && make && make install +# shell: cd /tmp/batman-adv && git checkout {{ batmanversion }} && git apply 1001-batman-adv-introduce-no_rebroadcast-option.patch && make && make install when: getbatman.changed - name: Get batctl git: repo=http://git.open-mesh.org/batctl.git @@ -144,8 +150,8 @@ - name: Install batctl shell: cd /tmp/batctl && git checkout {{ batmanversion }} && make && make install when: getbatctl.changed -# Install Tunneldigger # - name: Get Tunneldigger +# git: repo=https://github.com/wlanslovenija/tunneldigger.git git: repo=https://github.com/ffrl/tunneldigger.git dest=/srv/tunneldigger register: tunneldigger @@ -159,7 +165,7 @@ pip: requirements=/srv/tunneldigger/broker/requirements.txt virtualenv=/srv/tunneldigger/ when: tunneldigger.changed - name: Copy l2tp broker config template - template: src=./files/{{ item }} dest=/srv/ owner=root group=root mode=0444 + template: src=./files/{{ item }} dest=/srv/tunneldigger owner=root group=root mode=0444 with_items: broker_cfg when: tunneldigger.changed - name: Copy tunneldigger script template @@ -169,8 +175,8 @@ copy: src=./files/{{ item }} dest=/srv/tunneldigger owner=root group=root mode=0500 with_items: tunneldigger_scripts when: tunneldigger.changed - - name: Copy tunneldigger service file - copy: src=./files/{{ item }} dest=/etc/systemd/system/ owner=root group=root mode=0444 + - name: Copy tunneldigger service template + copy: src=./files/{{ item }} dest=/etc/systemd/system owner=root group=root mode=0444 with_items: tunneldigger_service when: tunneldigger.changed - name: Tunneldigger reload @@ -178,6 +184,7 @@ with_items: - systemctl daemon-reload - systemctl enable tunneldigger.service + - systemctl enable tunneldigger-backup.service when: tunneldigger.changed - name: Copy logrotate config copy: src=./files/{{ item }} dest=/etc/ owner=root group=root mode=0500 @@ -313,4 +320,4 @@ msg: "{{ inventory_hostname }} completed with {{ snversion }}" channel: "#technik" username: "Ansible on {{ inventory_hostname }}" - parse: 'none' + parse: 'none' \ No newline at end of file