David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 1 | - name: Directory is created |
| 2 | file: |
| 3 | path: /data/consul-template |
| 4 | state: directory |
| 5 | tags: [consul-template] |
| 6 | |
| 7 | - name: File is copied |
| 8 | copy: |
| 9 | src: consul-template |
| 10 | dest: /usr/local/bin/consul-template |
David K. Bainbridge | 8b17904 | 2016-11-30 15:38:42 -0800 | [diff] [blame^] | 11 | mode: "0755" |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 12 | tags: [consul-template] |
| 13 | |
| 14 | - name: Example template is copied |
| 15 | copy: |
| 16 | src: example.ctmpl |
| 17 | dest: /data/consul-template/example.ctmpl |
David K. Bainbridge | 8b17904 | 2016-11-30 15:38:42 -0800 | [diff] [blame^] | 18 | mode: "0644" |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 19 | tags: [consul-template] |