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

build-dep support in dnf module #33371

Closed
keszybz opened this issue Nov 29, 2017 · 7 comments
Closed

build-dep support in dnf module #33371

keszybz opened this issue Nov 29, 2017 · 7 comments
Labels
affects_2.5 This issue/PR affects Ansible v2.5 feature This issue/PR relates to a feature request. module This issue/PR relates to a module. packaging Packaging category support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@keszybz
Copy link
Contributor

keszybz commented Nov 29, 2017

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

module/dnf

SUMMARY

It'd be great if the dnf module supported build-dep installation like the apt module does (see 'build-dep' in description of state on http://docs.ansible.com/ansible/latest/apt_module.html).

@ansibot
Copy link
Contributor

ansibot commented Nov 29, 2017

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Nov 29, 2017

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 feature_idea module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Nov 29, 2017
@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label Nov 30, 2017
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_idea labels Mar 2, 2018
@ansibot
Copy link
Contributor

ansibot commented Aug 18, 2018

@ncoghlan
Copy link

ncoghlan commented May 2, 2019

Note that the absence of this feature also keeps the generic package layer from supporting build dependency installation, making it markedly less useful for setting up build servers.

@ncoghlan
Copy link

ncoghlan commented May 2, 2019

Interim workaround for anyone else looking for the cross-platform functionality:

    - name: Install the build dependencies for OpenSSL and Python3 (Debian etc)
      apt:
        pkg: openssl, python3
        state: build-dep
      become: yes
      when: ansible_pkg_mgr == 'apt'

    - name: Install the build dependencies for OpenSSL and Python3 (Fedora etc)
      command:
        dnf builddep -y openssl python3
      args:
        warn: false
      register: dnf_result
      become: yes
      when: ansible_pkg_mgr == 'dnf'
      changed_when: '"Nothing to do" not in dnf_result.stdout'

Edit: improved dnf workaround to use the "Nothing to do" output to detect when nothing actually changed on the system.

@ansibot
Copy link
Contributor

ansibot commented May 16, 2020

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@bcoca
Copy link
Member

bcoca commented Mar 12, 2021

Hi!

Thank you very much for your submission to Ansible. It sincerely means a lot to us that you've taken the time to contribute.

Per recent announcements at AnsibleFest Atlanta 2019, going forward we are no longer accepting new one off modules/plugins, or modules/plugins that create a new category.

However, we recommend looking into providing this functionality through Ansible Galaxy via Ansible Collections. You can find more information about collections at https://docs.ansible.co
m/ansible/devel/dev_guide/developing_collections.html.

Thank you once again for this and your interest in Ansible!

If you have further questions please stop by IRC or the mailing list:

@bcoca bcoca closed this as completed Mar 12, 2021
@ansible ansible locked and limited conversation to collaborators Apr 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 feature This issue/PR relates to a feature request. module This issue/PR relates to a module. packaging Packaging category support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

5 participants