CSC Ansible Playbooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
350 B

- 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/ > generate-hosts/hosts
- name: copy hosts file
copy: src=generate-hosts/hosts dest=/etc/hosts backup=yes