54/120

김건호·2022년 4월 27일
0

ansible 동적 인벤토리

인벤토리 플러그인 목록

ansible-doc -t inventory -l

aws_ec2 인벤토리 플러그인

ansible-doc -t inventory aws_ec2

boto SDK

sudo yum -y install python-boto3

동적 인벤토리 구성 파일
inven_aws_ec2.yaml

plugin: aws_ec2
regions:
  - ap-northeast-2

aws_profile: "default"

keyed_groups:
  - key: tags.Environment

filters:
  tag:Environment: dev
ansible-inventory -i inven_aws_ec2.yaml --graph
ansible-playbook -i inven_aws_ec2.yaml site.yaml -u ec2-user

ansible 프로젝트 ansible로 Azure에 wordpress

profile
Ken, 🔽🔽 거노밥 유튜브(house icon) 🔽🔽

0개의 댓글