Scott Baker | ef0b6c8 | 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 | 3ca17ff | 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 | 91dd075 | 2015-05-05 22:41:50 -0700 | [diff] [blame^] | 15 | firewall_rules: |
| 16 | {% for firewall_rule in firewall_rules.split("\n") %} |
| 17 | - {{ firewall_rule }} |
| 18 | {% endfor %} |
| 19 | |
Scott Baker | ef0b6c8 | 2015-05-05 17:53:12 -0700 | [diff] [blame] | 20 | tasks: |
| 21 | - name: make sure /etc/dnsmasq.d exists |
| 22 | file: path=/etc/dnsmasq.d state=directory owner=root group=root |
| 23 | |
| 24 | - name: configure dnsmasq servers |
| 25 | template: src=/opt/xos/observers/vcpe/templates/dnsmasq_servers.j2 dest=/etc/dnsmasq.d/servers.conf owner=root group=root |
| 26 | |
| 27 | - name: setup networking |
| 28 | template: src=/opt/xos/observers/vcpe/templates/vlan_sample.j2 dest=/etc/vlan_sample owner=root group=root |
Scott Baker | 91dd075 | 2015-05-05 22:41:50 -0700 | [diff] [blame^] | 29 | |
| 30 | - name: setup firewall |
| 31 | template: src=/opt/xos/observers/vcpe/templates/firewall_sample.j2 dest=/etc/firewall_sample owner=root group=root |