Commit 8b3a92ca authored by rgaudin's avatar rgaudin
Browse files

Issue #228: SSH connectivity issue from pibox to QEMU

- removing pibox-mode-switcher from NetworkManager dispatchers
- Adding it at start via cron @reboot
- Making sure dnsmasq is only started at seal
parent cc8e4dfd
......@@ -130,21 +130,13 @@
mode: 0755
tags: master
- name: Copy pibox-mode-switcher script for NetworkManager
- name: Copy pibox-mode-switcher script
copy:
src: pibox-mode-switcher
dest: /usr/local/bin/pibox-mode-switcher
mode: 0755
tags: master
- name: Link mode-switcher script to NetworkManager
file:
src: /usr/local/bin/pibox-mode-switcher
dest: /etc/NetworkManager/dispatcher.d/03dnsmasq
state: link
notify: restart network manager
tags: master
- name: Add a cron entry to check connectivity
cron:
name: "Check connectivity status"
......@@ -153,6 +145,14 @@
state: present
tags: master
- name: Add reboot cron entry for connectivity check
cron:
name: "Check connectivity status uppon startup"
special_time: reboot
job: "/usr/local/bin/pibox-mode-switcher"
state: present
tags: master
- name: Copy clean_iptables.sh to /usr/local/bin
copy:
src: clean_iptables.sh
......
---
- name: Install dnsmasq
environment:
RUNLEVEL: 1
apt:
name: dnsmasq
state: latest
......@@ -7,11 +9,8 @@
autoclean: yes
tags: master
- name: stop dnsmasq
service:
name: dnsmasq
enabled: no
state: stopped
- include_tasks: disable_service.yml service=dnsmasq
tags: master
- name: Copy dnsmasq.conf file
template:
......@@ -32,9 +31,3 @@
dest: /etc/network/interfaces
backup: yes
tags: master
- name: restart dsnmasq
service:
name: dnsmasq
state: restarted
tags: seal
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment