From 5533ac6867b480b0064073f3e39dc64cdce38459 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 10 Sep 2016 10:09:22 +0300 Subject: [PATCH] - Configure Vanrang Landrush as a service and Dnsmasq accordingly. --- workstation.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/workstation.yml b/workstation.yml index e4c9fc5..83f3f31 100644 --- a/workstation.yml +++ b/workstation.yml @@ -15,6 +15,16 @@ name: docker state: restarted + - name: Restart Landrush + service: + name: landrush + state: restarted + + - name: Restart Dnsmasq + service: + name: dnsmasq + state: restarted + tasks: - assert: that: @@ -116,3 +126,30 @@ - vagrant-gatling-rsync command: 'vagrant plugin install {{ item }}' changed_when: False + + - name: Add Vagrant Landrush Systemd service + template: + src: landrush.service.j2 + dest: /etc/systemd/system/landrush.service + owner: root + group: root + mode: 0o0644 + notify: + - Systemd daemon reload + - Restart Landrush + + - name: Enable Vagrant Landrush service + service: + name: landrush + state: started + enabled: yes + + - name: Direct .vagrant TLD queries to Landrush + template: + src: landrush.j2 + dest: /etc/dnsmasq.d/landrush + owner: root + group: root + mode: 0o0644 + notify: + - Restart Dnsmasq -- GitLab