mercurial/aws-s3-backup/tasks/main.yaml
changeset 56 59e94b4a91a2
parent 2 2556522a2a45
child 157 5e5c9e605142
equal deleted inserted replaced
55:376bb71909a4 56:59e94b4a91a2
       
     1 ---
       
     2 
       
     3 - name: create mercurial s3 backup shell script
       
     4   become: yes
       
     5   copy:
       
     6     src: "mercurial-s3-backup.sh"
       
     7     dest: "/usr/local/bin/mercurial-s3-backup.sh"
       
     8     mode: "0755"
       
     9 
       
    10 - name: configure mercurial s3 backup systemd service
       
    11   become: yes
       
    12   template:
       
    13     src: "[email protected]"
       
    14     dest: "/lib/systemd/system/mercurial-s3-backup@{{mercurial_s3_backup_bucket}}.service"
       
    15   notify: reload s3 backup service
       
    16 
       
    17 - name: ensure mercurial s3 backup service is started
       
    18   become: yes
       
    19   systemd: name="mercurial-s3-backup@{{mercurial_s3_backup_bucket}}.service" enabled="yes"