Uncomment things from update-hosts.yml
[public/csc-playbooks.git] / update-hosts.yml
1 ---
2 - hosts: all
3   remote_user: root
4   gather_facts: no
5   tasks:
6      - name: update hosts
7        connection: local
8        git: repo=~git/public/hosts.git dest=generate-hosts
9      - name: generate hosts file
10        connection: local
11        shell: generate-hosts/generate-hosts.py < generate-hosts/hosts.in > generate-hosts/hosts
12      - name: copy hosts file
13        copy: src=generate-hosts/hosts dest=/etc/hosts backup=yes