roles/pleroma-otp/tasks/main.yaml
changeset 88 63efc98132f7
parent 87 4f87097dd651
child 89 4e1cf6df4ac9
equal deleted inserted replaced
87:4f87097dd651 88:63efc98132f7
     1 ---
     1 ---
     2 
       
     3 - name: install pleroma apt packages
       
     4   become: yes
       
     5   apt: name="{{pleroma_apt_packages}}"
       
     6 
     2 
     7 - name: add users
     3 - name: add users
     8   become: yes
     4   become: yes
     9   user: name="pleroma" shell="/bin/false" home="/opt/pleroma" system="yes"
     5   user: name="pleroma" shell="/bin/false" home="/opt/pleroma" system="yes"
    10 
     6 
    70 - name: install pleroma release
    66 - name: install pleroma release
    71   become: yes
    67   become: yes
    72   copy: remote_src="True" src="/tmp/release/" dest="/opt/pleroma/" owner="pleroma" group="pleroma"
    68   copy: remote_src="True" src="/tmp/release/" dest="/opt/pleroma/" owner="pleroma" group="pleroma"
    73   notify: restart pleroma instance
    69   notify: restart pleroma instance
    74 
    70 
    75 # - name: remove tmp release folder
    71 - name: remove tmp release folder
    76 #   become: yes
    72   become: yes
    77 #   file: path="{{item}}" state="absent"
    73   file: path="{{item}}" state="absent"
    78 #   with_items:
    74   with_items:
    79 #     - "/tmp/setup_db.psql"
    75     - "/tmp/setup_db.psql"
    80 #     - "/tmp/release/"
    76     - "/tmp/release/"
       
    77   when: pleroma_cleanup_tmp
       
    78 
       
    79 - import_tasks: s3-backup.yml
       
    80   when: pleroma_s3_backup_enabled
    81 
    81 
    82 - name: configure pleroma systemd service
    82 - name: configure pleroma systemd service
    83   become: yes
    83   become: yes
    84   copy:
    84   copy:
    85     src: "[email protected]"
    85     src: "[email protected]"