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