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

Adding ansible 3 support #545

Merged
merged 2 commits into from Mar 10, 2021
Merged

Adding ansible 3 support #545

merged 2 commits into from Mar 10, 2021

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Mar 9, 2021

@pulpbot
Copy link
Member

pulpbot commented Mar 9, 2021

Attached issue: https://pulp.plan.io/issues/8365

@fao89 fao89 marked this pull request as ready for review March 9, 2021 17:57
@fao89
Copy link
Member Author

fao89 commented Mar 9, 2021

@mikedep333 I changed 2 tests to use ansible 3 instead of 2.9, but these tests were marked as required. Could you please change the repo settings?

Comment on lines 23 to 31
ansible.posix.firewalld:
port: '{{ pulp_webserver_http_port }}/tcp'
permanent: true
immediate: true
state: enabled
zone: '{{ pulp_firewalld_zone | default(omit) }}'

- name: Accept HTTPS connections on port {{ pulp_webserver_https_port }}
firewalld:
ansible.posix.firewalld:
Copy link
Member

Choose a reason for hiding this comment

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

Try out this syntax:

+++ b/roles/pulp_webserver/meta/main.yml
@@ -23,3 +23,5 @@ galaxy_info:
     - pulpcore
 dependencies:
   - pulp_common
+collections:
+  - ansible.posix

It may cause the collection to be installed as a dependency.

I am almost certain it will eliminate the need to specify the FQCN.

Copy link
Member Author

Choose a reason for hiding this comment

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

it did work! 🎉

tox.ini Show resolved Hide resolved
@@ -0,0 +1 @@
Adding ansible 3 support
Copy link
Member

Choose a reason for hiding this comment

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

We need to list dropping Ansible 2.8 support under removal. (Although it may technically work, but still.)

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

@fao89 fao89 force-pushed the 8365 branch 2 times, most recently from 8a545b0 to a3d6761 Compare March 10, 2021 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants