summaryrefslogtreecommitdiff
path: root/mikrotik.yml
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2019-04-10 00:46:56 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2019-04-10 00:46:56 +0300
commitcf5d359b2fe4050796869020dbf04c65e509fde3 (patch)
tree458745cd4ead6bfeeaba21d216726418b831e209 /mikrotik.yml
parentmikrotik.yml: Configure PXE. (diff)
downloadansible-wigust-playbooks-cf5d359b2fe4050796869020dbf04c65e509fde3.tar.gz
mikrotik.yml: Make TFTP conditional to MikroTik or GuixSD host.
Diffstat (limited to 'mikrotik.yml')
-rw-r--r--mikrotik.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/mikrotik.yml b/mikrotik.yml
index 79d010e..7ea5085 100644
--- a/mikrotik.yml
+++ b/mikrotik.yml
@@ -7,3 +7,10 @@
commands:
- /ip dhcp-server network remove numbers=0
- /ip dhcp-server network add address=192.168.105.0/24 gateway=192.168.105.1 dns-server=192.168.105.1 wins-server="" ntp-server="" caps-manager="" boot-file-name="pxelinux.0" dhcp-option="" next-server=192.168.105.120
+ when: guixsd_tftp="yes"
+ - name: Set TFTP to MikroTik
+ routeros_command:
+ commands:
+ - /ip dhcp-server network remove numbers=0
+ - /ip dhcp-server network add address=192.168.105.0/24 gateway=192.168.105.1 dns-server=192.168.105.1 wins-server="" ntp-server="" caps-manager="" boot-file-name="netboot.xyz.kpxe" dhcp-option=""
+ when: guixsd_tftp="no"