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

Add full path to the awx_ec2 inv example #1378

Conversation

thenets
Copy link
Contributor

@thenets thenets commented Feb 20, 2023

SUMMARY

The current example does not work, since it uses the default namespace and collection names.

This fixes the problem and allows anyone who installs the collection to use it outside of the collection scope.

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME
  • inventory: aws_ec2

@github-actions
Copy link

github-actions bot commented Feb 20, 2023

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Copy link
Contributor

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thenets Thank you for fixing examples. Can you also please add a changelog fragment with a trivial entry for this change?https://docs.ansible.com/ansible/latest/community/development_process.html#creating-a-changelog-fragment

@thenets
Copy link
Contributor Author

thenets commented Feb 20, 2023

@alinabuzachis I added the fragment :)

I also made a small change in the description. I think it removes confusion.
Let me know if you believe it makes sense.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/203d5a6e8ea446dc9f1e9fcc65e520bc

✔️ ansible-galaxy-importer SUCCESS in 3m 51s
✔️ build-ansible-collection SUCCESS in 16m 03s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 8m 31s (non-voting)
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 8m 37s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 8m 28s
✔️ ansible-test-sanity-aws-ansible-2.14 SUCCESS in 8m 28s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 9m 34s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 8m 57s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 9m 40s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 8m 28s
✔️ cloud-tox-py3 SUCCESS in 10m 35s
✔️ ansible-test-changelog SUCCESS in 6m 13s
✔️ ansible-test-splitter SUCCESS in 7m 03s
✔️ integration-amazon.aws-1 SUCCESS in 13m 04s
Skipped 43 jobs

@tremble tremble added the backport-5 PR should be backported to the stable-5 branch label Feb 23, 2023
@tremble tremble added this to the 5.3.0 milestone Feb 23, 2023
@tremble tremble force-pushed the thenets/inventory-ec2-examples-patch branch from 1d2a54c to 0ff7516 Compare February 23, 2023 18:44
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/053391d87c434433bbf314d2ab602f72

✔️ ansible-galaxy-importer SUCCESS in 7m 03s
✔️ build-ansible-collection SUCCESS in 12m 32s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 9m 49s (non-voting)
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 10m 11s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 14m 14s
✔️ ansible-test-sanity-aws-ansible-2.14 SUCCESS in 10m 27s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 8m 45s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 10m 00s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 9m 49s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 8m 46s
✔️ cloud-tox-py3 SUCCESS in 7m 00s
✔️ ansible-test-changelog SUCCESS in 4m 17s
✔️ ansible-test-splitter SUCCESS in 4m 45s
✔️ integration-amazon.aws-1 SUCCESS in 15m 08s
Skipped 43 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Feb 24, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/b14e2f05f58b4ab18f0beeb131413643

✔️ ansible-galaxy-importer SUCCESS in 4m 34s
✔️ build-ansible-collection SUCCESS in 12m 13s
✔️ ansible-test-splitter SUCCESS in 5m 04s
✔️ integration-amazon.aws-1 SUCCESS in 14m 55s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 83d68c1 into ansible-collections:main Feb 24, 2023
@patchback
Copy link

patchback bot commented Feb 24, 2023

Backport to stable-5: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-5/83d68c160c2a17ea25318e8b81acdb82f6ba4250/pr-1378

Backported as #1388

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 24, 2023
Add full path to the awx_ec2 inv example

SUMMARY

The current example does not work, since it uses the default namespace and collection names.
This fixes the problem and allows anyone who installs the collection to use it outside of the collection scope.

ISSUE TYPE

Docs Pull Request

COMPONENT NAME

inventory: aws_ec2

Reviewed-by: Alina Buzachis
Reviewed-by: Mark Chappell
(cherry picked from commit 83d68c1)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Feb 24, 2023
[PR #1378/83d68c16 backport][stable-5] Add full path to the awx_ec2 inv example

This is a backport of PR #1378 as merged into main (83d68c1).
SUMMARY

The current example does not work, since it uses the default namespace and collection names.
This fixes the problem and allows anyone who installs the collection to use it outside of the collection scope.

ISSUE TYPE


Docs Pull Request

COMPONENT NAME


inventory: aws_ec2

Reviewed-by: Mark Chappell
@thenets thenets deleted the thenets/inventory-ec2-examples-patch branch February 27, 2023 17:32
reparepo pushed a commit to reparepo/amazon.aws that referenced this pull request Mar 17, 2023
…ctions#1379)

route53: Restore support for zero weighted DNS records

SUMMARY
In ansible-collections#1117 (comment) and https://github.com/ansible-collections/community.aws/pull/1117/files#r869391659 this line was recommended to be simplified, but not any will also return true if weight_in has a value of 0, not only when it is None
Fixes ansible-collections#1378
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
route53
ADDITIONAL INFORMATION

Previously it was possible to create weighted records with a weight of 0. Currently the playbook below returns the error:
You have specified identifier which makes sense only if you specify one of: weight, region, geo_location or failover.

- name: Bug demo
  hosts: localhost
  tasks:
    - name: Set 0 weight for old env
      route53:
        wait: yes
        ttl: '5'
        type: 'CNAME'
        identifier: old
        overwrite: yes
        record: 'record.example.com.'
        zone: 'example.com.'
        value: 'record-old.example.com.'
        weight: '0'
        state: present

Reviewed-by: Mark Chappell <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@9195021
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ctions#1379)

route53: Restore support for zero weighted DNS records

SUMMARY
In ansible-collections#1117 (comment) and https://github.com/ansible-collections/community.aws/pull/1117/files#r869391659 this line was recommended to be simplified, but not any will also return true if weight_in has a value of 0, not only when it is None
Fixes ansible-collections#1378
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
route53
ADDITIONAL INFORMATION


Previously it was possible to create weighted records with a weight of 0. Currently the playbook below returns the error:
You have specified identifier which makes sense only if you specify one of: weight, region, geo_location or failover.


- name: Bug demo
  hosts: localhost
  tasks:
    - name: Set 0 weight for old env
      route53:
        wait: yes
        ttl: '5'
        type: 'CNAME'
        identifier: old
        overwrite: yes
        record: 'record.example.com.'
        zone: 'example.com.'
        value: 'record-old.example.com.'
        weight: '0'
        state: present

Reviewed-by: Mark Chappell <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ctions#1379)

route53: Restore support for zero weighted DNS records

SUMMARY
In ansible-collections#1117 (comment) and https://github.com/ansible-collections/community.aws/pull/1117/files#r869391659 this line was recommended to be simplified, but not any will also return true if weight_in has a value of 0, not only when it is None
Fixes ansible-collections#1378
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
route53
ADDITIONAL INFORMATION


Previously it was possible to create weighted records with a weight of 0. Currently the playbook below returns the error:
You have specified identifier which makes sense only if you specify one of: weight, region, geo_location or failover.


- name: Bug demo
  hosts: localhost
  tasks:
    - name: Set 0 weight for old env
      route53:
        wait: yes
        ttl: '5'
        type: 'CNAME'
        identifier: old
        overwrite: yes
        record: 'record.example.com.'
        zone: 'example.com.'
        value: 'record-old.example.com.'
        weight: '0'
        state: present

Reviewed-by: Mark Chappell <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
…ctions#1379)

route53: Restore support for zero weighted DNS records

SUMMARY
In ansible-collections#1117 (comment) and https://github.com/ansible-collections/community.aws/pull/1117/files#r869391659 this line was recommended to be simplified, but not any will also return true if weight_in has a value of 0, not only when it is None
Fixes ansible-collections#1378
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
route53
ADDITIONAL INFORMATION


Previously it was possible to create weighted records with a weight of 0. Currently the playbook below returns the error:
You have specified identifier which makes sense only if you specify one of: weight, region, geo_location or failover.


- name: Bug demo
  hosts: localhost
  tasks:
    - name: Set 0 weight for old env
      route53:
        wait: yes
        ttl: '5'
        type: 'CNAME'
        identifier: old
        overwrite: yes
        record: 'record.example.com.'
        zone: 'example.com.'
        value: 'record-old.example.com.'
        weight: '0'
        state: present

Reviewed-by: Mark Chappell <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-5 PR should be backported to the stable-5 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants