Scott Baker | 64b889b | 2015-05-05 17:53:12 -0700 | [diff] [blame] | 1 | --- |
| 2 | - hosts: {{ sliver_name }} |
| 3 | connection: ssh |
| 4 | user: ubuntu |
| 5 | sudo: yes |
| 6 | vars: |
| 7 | cdn_enable: {{ cdn_enable }} |
| 8 | dnsdemux_ip: {{ dnsdemux_ip }} |
| 9 | firewall_enable: {{ firewall_enable }} |
| 10 | url_filter_enable: {{ url_filter_enable }} |
Scott Baker | 81a2123 | 2015-05-05 18:01:51 -0700 | [diff] [blame^] | 11 | vlan_ids: |
| 12 | {% for vlan_id in vlan_ids %} |
| 13 | - {{ vlan_id }} |
| 14 | {% endfor %} |
Scott Baker | 64b889b | 2015-05-05 17:53:12 -0700 | [diff] [blame] | 15 | tasks: |
| 16 | - name: make sure /etc/dnsmasq.d exists |
| 17 | file: path=/etc/dnsmasq.d state=directory owner=root group=root |
| 18 | |
| 19 | - name: configure dnsmasq servers |
| 20 | template: src=/opt/xos/observers/vcpe/templates/dnsmasq_servers.j2 dest=/etc/dnsmasq.d/servers.conf owner=root group=root |
| 21 | |
| 22 | - name: setup networking |
| 23 | template: src=/opt/xos/observers/vcpe/templates/vlan_sample.j2 dest=/etc/vlan_sample owner=root group=root |