summaryrefslogtreecommitdiff
path: root/roles/dyndns/server/tasks/main.yml
blob: 304a2473912c836e3f9ec08cf850ddf0aa32ebb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: create user for dyndns
  user:
    name: dyndns
    home: /var/lib/dyndns
    system: yes
    shell: /bin/sh
    groups: bind

- name: create .ssh directory
  file:
    path: /var/lib/dyndns/.ssh
    mode: 0700
    owner: dyndns
    group: dyndns

- name: install zone update script
  template:
    src: dyndns.py.j2
    dest: /usr/local/bin/dyndns.py
    mode: 0755