aws-s3-backup/tasks/main.yaml
changeset 7 dc3fca0131a7
parent 2 2556522a2a45
child 43 b86f3fc9fb6f
equal deleted inserted replaced
6:3b1f18f6a5a4 7:dc3fca0131a7
     8   become: yes
     8   become: yes
     9   pip: name="{{aws_s3_backup_pip_packages}}"
     9   pip: name="{{aws_s3_backup_pip_packages}}"
    10 
    10 
    11 - name: create aws config dir for root
    11 - name: create aws config dir for root
    12   become: yes
    12   become: yes
    13   file: path="/root/.aws/" state="directory" mode="0755"
    13   file: path="/root/.aws/" state="directory" mode="0700"
    14 
    14 
    15 - name: configure aws credentials for root
    15 - name: configure aws credentials for root
    16   become: yes
    16   become: yes
    17   template: src="aws-{{item}}.j2" dest="/root/.aws/{{item}}" mode="0600"
    17   template: src="aws-{{item}}.j2" dest="/root/.aws/{{item}}" mode="0600"
    18   with_items:
    18   with_items: