Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec2_group.py and --diff #19889

Closed
jbscare opened this issue Jan 4, 2017 · 12 comments
Closed

ec2_group.py and --diff #19889

jbscare opened this issue Jan 4, 2017 · 12 comments
Labels
affects_2.1 This issue/PR affects Ansible v2.1 aws cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@jbscare
Copy link
Contributor

jbscare commented Jan 4, 2017

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

ec2_group

ANSIBLE VERSION
ansible 2.1.0 (devel 33f96edcd0) last updated 2016/03/10 14:52:58 (GMT -400)
  lib/ansible/modules/core: (detached HEAD c86a0ef84a) last updated 2016/03/10 14:53:03 (GMT -400)
  lib/ansible/modules/extras: (detached HEAD 33a557cc59) last updated 2016/03/10 14:53:03 (GMT -400)
  config file = 
  configured module search path = Default w/o overrides
CONFIGURATION

n/a

OS / ENVIRONMENT

n/a

SUMMARY

ec2_group.py doesn't do anything useful with --diff, and it'd be great if it did (and if it worked both with and without --check). Without it, we have to resort to before-and-after captures of 'aws ec2 describe-security-groups' output, and even that only tells what changed after the change was already made.

STEPS TO REPRODUCE

Adding --diff to an ansible-playbook run that uses the ec2_group module would show output indicating what was changed (or would be changed, with --check) -- perhaps Unix 'diff' style, perhaps some other format if 'diff' style doesn't really make sense. (I don't have a specific idea in mind, but would be happy to help come up with something and/or comment on something that others come up with.)

EXPECTED RESULTS

Some sort of output indicating what had change (or would changed).

ACTUAL RESULTS

Currently there's no change in output from when the playbook is run with or without --diff.

@jbscare
Copy link
Contributor Author

jbscare commented Jan 4, 2017

From @defionscode on March 14, 2016 19:33

This is a great idea. TBH, this is not something I'd likely hit anytime soon given other priorities but I would definitely like to see this implemented.

@jbscare
Copy link
Contributor Author

jbscare commented Jan 4, 2017

From @alikins on April 25, 2016 22:10

Would the proposed ec2_group facts modules help?

ansible/ansible-modules-extras#1939
ansible/ansible-modules-extras#1352
ansible/ansible-modules-extras#1908

@jbscare
Copy link
Contributor Author

jbscare commented Jan 4, 2017

From @ansibot on July 31, 2016 14:43

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@jbscare
Copy link
Contributor Author

jbscare commented Jan 4, 2017

ec2_group_facts would be another way to compare the live state before and after a change, but what I really had in mind here was a way to compare what ec2_group.py would do, against the live state, ideally in a way that would work with --check.

@jbscare
Copy link
Contributor Author

jbscare commented Jan 4, 2017

From @ansibot on August 30, 2016 19:53

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@jbscare
Copy link
Contributor Author

jbscare commented Jan 4, 2017

From @ansibot on October 6, 2016 14:57

@ansible, ping. This issue is still waiting on your response.
click here for bot help

@jbscare
Copy link
Contributor Author

jbscare commented Jan 4, 2017

From @ansibot on December 7, 2016 19:8

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.

@ansibot ansibot added affects_2.1 This issue/PR affects Ansible v2.1 aws cloud feature_idea module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. labels Jan 4, 2017
@jimi-c jimi-c removed the plugin label Jan 4, 2017
@nitzmahone nitzmahone removed the needs_triage Needs a first human triage before being processed. label Jan 6, 2017
@ansibot
Copy link
Contributor

ansibot commented Jun 24, 2017

@jbscare Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md

click here for bot help

@ansibot ansibot added needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. module This issue/PR relates to a module. support:curated and removed module This issue/PR relates to a module. needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. labels Jun 24, 2017
@ansibot
Copy link
Contributor

ansibot commented Jul 19, 2017

cc @adq
click here for bot help

@ansibot ansibot added the support:certified This issue/PR relates to certified code. label Aug 16, 2017
@ansibot ansibot added support:core This issue/PR relates to code supported by the Ansible Engineering Team. and removed support:certified This issue/PR relates to certified code. labels Sep 10, 2017
@kenske
Copy link

kenske commented Nov 9, 2017

Any updates or workaround for this?

@ansibot
Copy link
Contributor

ansibot commented Nov 17, 2017

@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_idea labels Mar 2, 2018
@s-hertel
Copy link
Contributor

Hi @jbscare and @kenske. I added a tentative solution for diff mode to ec2_group in 2.7 in 79ecb4c. It's part of a larger goal to create a common diff mode framework for AWS modules, so the output may still needs some tweaking to meet people's needs. Please test it out if you have a chance and open bug reports to help steer the direction it goes in if you find things that can be improved.

@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.1 This issue/PR affects Ansible v2.1 aws cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

6 participants