27 lines
741 B
YAML
27 lines
741 B
YAML
---
|
|
# The home-server project produces a multi-purpose setup using Ansible.
|
|
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license.
|
|
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
|
|
|
|
- name: install etckeeper
|
|
package:
|
|
name: etckeeper
|
|
when: (chroot == "")
|
|
|
|
- name: send some scripts in {{chroot}}/usr/local/bin/
|
|
copy:
|
|
src: files/bin/
|
|
dest: "{{chroot}}/usr/local/bin/"
|
|
mode: 0700
|
|
|
|
- name: one more script in {{chroot}}/usr/local/bin/
|
|
template:
|
|
src: templates/etc_init.j2
|
|
dest: "{{chroot}}/usr/local/bin/etc_init"
|
|
mode: 0700
|
|
|
|
- name: enable etckeeper
|
|
command: "{{chroot}}/usr/local/bin/etc_init"
|
|
args:
|
|
creates: "{{chroot}}/etc/.git"
|