Skip to content

Instantly share code, notes, and snippets.

@shivam-deepsource
Created September 29, 2022 05:32
Show Gist options
  • Save shivam-deepsource/c7c2952ed66ed37eca6a80613c846024 to your computer and use it in GitHub Desktop.
Save shivam-deepsource/c7c2952ed66ed37eca6a80613c846024 to your computer and use it in GitHub Desktop.

Revisions

  1. shivam-deepsource created this gist Sep 29, 2022.
    37 changes: 37 additions & 0 deletions ansible-example.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    ---
    user_message:
    - Update AWS credential with Access and Secret key
    - Update Workshop Credential with password used to login to Controller

    controller_components:
    - credentials
    - inventory_sources
    - job_templates

    controller_credentials:
    - name: AWS
    credential_type: Amazon Web Services
    organization: Default
    update_secrets: false
    inputs:
    username: REPLACEME
    password: REPLACEME

    controller_inventory_sources:
    - name: AWS Inventory
    organization: Default
    source: ec2
    inventory: Workshop Inventory
    credential: AWS
    overwrite: true
    source_vars:
    hostnames:
    - tag:Name
    compose:
    ansible_host: public_ip_address
    groups:
    cloud_aws: true
    keyed_groups:
    - key: platform
    prefix: os