我正在尝试将远程Web服务器目录的内容上载到s3存储桶
setState
当我运行剧本时,没有错误,但是输出和存储桶中也没有变化
---
- hosts: web
connection: local
gather_facts: true
tasks:
- name: Verify python dependencies for aws s3
pip: name={{ item }}
with_items:
- boto
- boto3
- botocore
- name: basic upload
s3_sync:
bucket: ecommerce-update
aws_access_key: xxx
aws_secret_key: xxx
file_root: /var/www/html/wp-content
key_prefix: /var/www/html/wp-content
region: eu-west-1
mode: push
permission: public-read