diff options
| author | Luke Hoersten <[email protected]> | 2020-02-09 12:05:37 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-02-09 12:05:37 -0600 |
| commit | 1cb30cc0aa4fda9bf0bac0b41ace862b1db434b8 (patch) | |
| tree | e4b27462ba4b8b249bb5eaac4b4be0006ca0392c /mercurial/tasks/main.yaml | |
| parent | 195a4a3fcf65bf47ecb1a0ea2a9fb070c18eb20f (diff) | |
Moved roles to top level
Diffstat (limited to 'mercurial/tasks/main.yaml')
| -rw-r--r-- | mercurial/tasks/main.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mercurial/tasks/main.yaml b/mercurial/tasks/main.yaml new file mode 100644 index 0000000..e766752 --- /dev/null +++ b/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" |
