aws inventory #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updated readme and provides example configuration file
Sorry I'll need a little more help with this issue. https://gitlab.com/stationgroup/ansible-target-practice/-/issues/1
Hi @reel ,
I must have been confused. I thought you only needed to know how the EC2 inventory. But if I'm right you want a playbook that either registers instances or not in an ALB target group based on a variable.
I'll need to do a bit more work for this though. I'll try to have this finished asap.
Thank you, just add the extra hours.
added 1 commit
b295ca88
- add ansible playbook exampleCompare with previous version
Updated example
Thanks I'm testing it.
should be
stopped
should be
"{{ hostvars[inventory_hostname].instance_id }}"
tag_dev_env
should betag_env_dev
When I try to execute tasks on the remote instance by adding:
It checks the local filesystem but shows the instance IP in the playbook execution output. I'll still need to be able to execute shell tasks on the remote instances, like normal. I need to be able to a execute a task before the target registration, I register the result and that determines whether or not I execute a script on the remote target instance and the instance is registered with the target group.
requested review from @reel
requested review from @reel
I ended up solving the remote execution part by removing
connection: local
and using something likedelegate_to: 127.0.0.1
.I can fix the remaining minor errors.
changed this line in version 3 of the diff
added 1 commit
fb662f2e
- fix tag group typoCompare with previous version
changed this line in version 4 of the diff
changed this line in version 4 of the diff
added 1 commit
8f2d4df3
- fix target_id parameter and stateCompare with previous version
approved this merge request
resolved all threads
mentioned in commit
2c86950121
assigned to @reel
requested review from @reel
I'll have a look at it later today