Batman-adv fixes for Ubuntu 16.04

This commit is contained in:
Ansible Admin 2018-07-03 23:10:50 +02:00
parent f953a01b84
commit 301dc1ecb5

View File

@ -10,7 +10,7 @@
gather_facts: False gather_facts: False
vars: vars:
snversion: master_v3.0.16 snversion: master_v3.0.16
batmanversion: v2015.2 batmanversion: v2017.4
common_required_packages: common_required_packages:
- git - git
- make - make
@ -41,6 +41,9 @@
- psmisc - psmisc
- dnsutils - dnsutils
- ntp - ntp
- libnl-genl-3-dev
- virtualenv
- linux-image-extra-4.4.0-127-generic
modules_required: modules_required:
- batman-adv - batman-adv
- nf_conntrack_netlink - nf_conntrack_netlink
@ -118,14 +121,14 @@
register: aptupdates register: aptupdates
- name: Set clock - name: Set clock
shell: /etc/init.d/ntp stop && /usr/sbin/ntpd -q -g && /etc/init.d/ntp start shell: /etc/init.d/ntp stop && /usr/sbin/ntpd -q -g && /etc/init.d/ntp start
- name: Add modules # - name: Add modules
lineinfile: dest=/etc/modules line={{ item }} # lineinfile: dest=/etc/modules line={{ item }}
with_items: modules_required # with_items: modules_required
register: modules_req # register: modules_req
- name: Load modules # - name: Load modules
modprobe: name={{ item }} # modprobe: name={{ item }}
with_items: modules_required # with_items: modules_required
when: modules_req.changed # when: modules_req.changed
- name: Install Linux headers - name: Install Linux headers
shell: > shell: >
apt-get install linux-headers-$(uname -r) -y apt-get install linux-headers-$(uname -r) -y
@ -179,6 +182,16 @@
copy: src=./files/{{ item }} dest=/etc/systemd/system owner=root group=root mode=0444 copy: src=./files/{{ item }} dest=/etc/systemd/system owner=root group=root mode=0444
with_items: tunneldigger_service with_items: tunneldigger_service
when: tunneldigger.changed when: tunneldigger.changed
##########
- name: Add modules
lineinfile: dest=/etc/modules line={{ item }}
with_items: modules_required
register: modules_req
- name: Load modules
modprobe: name={{ item }}
with_items: modules_required
when: modules_req.changed
#########
- name: Tunneldigger reload - name: Tunneldigger reload
command: "{{item}}" command: "{{item}}"
with_items: with_items:
@ -308,11 +321,8 @@
poll: 0 poll: 0
ignore_errors: true ignore_errors: true
when: tunneldigger.changed when: tunneldigger.changed
- file: - name: Logrotate rights
path: /etc/logrotate.conf file: path=/etc/logrotate.conf mode=0644 owner=root group=root
owner: root
group: root
mode: 0644
- name: Change root password - name: Change root password
user: name=root password={{ sn_rootpasswd }} user: name=root password={{ sn_rootpasswd }}
- name: Wirte version information - name: Wirte version information