Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

Ansible - Collection

Back


Collection


Install and use

ansible-galaxy collection install -r requirements.yaml  # install collection based on a requirement file
ansible-galaxy collection install amazon.aws

- host: localhost
  collections:
    - amazon.aws

  tasks:
    - name: Create S3 bucket
      aws_s3_bucket:
        name: my-bucket
        region: us-west-1