Michal Zegan | 6a9ea0f | 2019-05-27 13:57:24 +0200 | [diff] [blame] | 1 | --- |
| 2 | - name: "Create needed dirs for dns role" |
| 3 | file: |
| 4 | path: "{{ item }}" |
| 5 | state: directory |
| 6 | mode: "u+rw,g+wx,o+rwx" |
| 7 | recurse: true |
| 8 | loop: |
| 9 | - "{{ app_data_path }}/cfg" |
| 10 | - "{{ infra_images_path }}" |
| 11 | |
| 12 | - name: Download and archive dnsmasq docker image for the dns role to use |
| 13 | delegate_to: localhost |
| 14 | docker_image: |
| 15 | name: andyshinn/dnsmasq |
| 16 | tag: 2.76 |
| 17 | archive_path: /tmp/dnsmasq.tar |
| 18 | |
| 19 | - name: Copy dnsmasq image to node |
| 20 | copy: |
| 21 | src: /tmp/dnsmasq.tar |
| 22 | dest: "{{ infra_images_path }}/{{ dns_server_image_tar }}" |