2 apt: name=bind9,hash-slinger state=latest
3 - name: install zonemaker
5 dest: /var/lib/bind/zonemaker
6 repo: 'https://git.ralfj.de/zonemaker.git'
8 - name: install Makefile
10 dest: /var/lib/bind/Makefile
13 - name: install dyn-nsupdate build-deps
14 apt: name=libboost-regex-dev,libboost-program-options-dev,cmake state=latest
15 - name: clone dyn-nsupdate
17 dest: /var/lib/bind/dyn-nsupdate.d
18 repo: 'https://git.ralfj.de/dyn-nsupdate.git'
20 register: dyn_nsupdate_src
21 - name: create build dir
22 file: path=/var/lib/bind/dyn-nsupdate.d/nsupd-wrapper/build state=directory owner=bind
23 - name: compile dyn-nsupdate
24 when: dyn_nsupdate_src.changed
26 shell: "cmake .. -DCMAKE_BUILD_TYPE=Release -DDYNNSUPDATE_CONFIG_FILE=/var/lib/bind/dyn-nsupdate.conf && make"
28 chdir: /var/lib/bind/dyn-nsupdate.d/nsupd-wrapper/build
29 - name: install dyn-nsupdate
30 when: dyn_nsupdate_src.changed
31 command: install /var/lib/bind/dyn-nsupdate.d/nsupd-wrapper/build/dyn-nsupdate /var/lib/bind/dyn-nsupdate -o bind -g bind -m +rx,u+ws