mercurial/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Fri, 01 May 2020 16:21:21 -0500
changeset 12 80a6e9af6aa9
parent 2 2556522a2a45
permissions -rw-r--r--
Updated node and homebridge roles. Homebridge 1.0.0 released and breaks copy codec.

---

- name: install mercurial
  become: yes
  apt: name="mercurial"

- name: create mercurial s3 backup shell script
  become: yes
  copy:
    src: "mercurial-s3-backup.sh"
    dest: "/usr/local/bin/mercurial-s3-backup.sh"
    mode: "0755"

- name: configure mercurial s3 backup systemd service
  become: yes
  template:
    src: "[email protected]"
    dest: "/lib/systemd/system/mercurial-s3-backup@{{mercurial_s3_backup_bucket}}.service"
  notify: reload s3 backup service

- name: ensure mercurial s3 backup service is started
  become: yes
  systemd: name="mercurial-s3-backup@{{mercurial_s3_backup_bucket}}.service" enabled="yes"