mercurial/tasks/main.yaml
changeset 2 2556522a2a45
parent 0 df042396074e
equal deleted inserted replaced
1:fd351734f007 2:2556522a2a45
       
     1 ---
       
     2 
       
     3 - name: install mercurial
       
     4   become: yes
       
     5   apt: name="mercurial"
       
     6 
       
     7 - name: create mercurial s3 backup shell script
       
     8   become: yes
       
     9   copy:
       
    10     src: "mercurial-s3-backup.sh"
       
    11     dest: "/usr/local/bin/mercurial-s3-backup.sh"
       
    12     mode: "0755"
       
    13 
       
    14 - name: configure mercurial s3 backup systemd service
       
    15   become: yes
       
    16   template:
       
    17     src: "[email protected]"
       
    18     dest: "/lib/systemd/system/mercurial-s3-backup@{{mercurial_s3_backup_bucket}}.service"
       
    19   notify: reload s3 backup service
       
    20 
       
    21 - name: ensure mercurial s3 backup service is started
       
    22   become: yes
       
    23   systemd: name="mercurial-s3-backup@{{mercurial_s3_backup_bucket}}.service" enabled="yes"