diff options
| author | Luke Hoersten <[email protected]> | 2020-02-09 11:58:21 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-02-09 11:58:21 -0600 |
| commit | 785a8b2b45f0faf5e2578099bca1090c9c1417bb (patch) | |
| tree | 53b4737ab07baf112c4bbc5b968ba146ec64bf7a /roles/mercurial/tasks | |
Opensourcing raspberry pi roles.
Diffstat (limited to 'roles/mercurial/tasks')
| -rw-r--r-- | roles/mercurial/tasks/main.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/mercurial/tasks/main.yaml b/roles/mercurial/tasks/main.yaml new file mode 100644 index 0000000..e766752 --- /dev/null +++ b/roles/mercurial/tasks/main.yaml @@ -0,0 +1,23 @@ +--- + +- 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" |
