Open pavan-yejare opened 7 months ago
how to user aws_ec2 plugin in inventroy and name should *aws_ec2.yaml of inventory file name.
we are using aws ssm for connecting to instance
plugin: aws_ec2 regions: - us-east-2 hostnames: - i-xxxxxxxxxxx filters: instance-state-name: Running
and playbook
--- - hosts: all become: true vars: ansible_connection: aws_ssm ansible_aws_ssm_bucket_name: BUCKET_NAME ansible_aws_ssm_region: us-east-2 ssm_timeout: 60 tasks: - name: Update apt repo and cache ansible.builtin.shell: cmd: "sudo mkdir data"
how to user aws_ec2 plugin in inventroy and name should *aws_ec2.yaml of inventory file name.
we are using aws ssm for connecting to instance
and playbook