14 lines
350 B
YAML
14 lines
350 B
YAML
---
|
|
- name: update hosts
|
|
connection: local
|
|
become: no
|
|
git: repo=~git/public/hosts.git dest=generate-hosts
|
|
|
|
- name: generate hosts file
|
|
connection: local
|
|
become: no
|
|
shell: generate-hosts/generate-hosts.py < generate-hosts/hosts.in > generate-hosts/hosts
|
|
|
|
- name: copy hosts file
|
|
copy: src=generate-hosts/hosts dest=/etc/hosts backup=yes
|