Skip to content

Update setup-RedHat.yml #91

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

Closed
wants to merge 1 commit into from
Closed

Conversation

mkondratev
Copy link

Setting up a repository of the crb and dnf module without using the shell.

Setting up a repository of the crb and dnf module without using the shell.
@mkondratev
Copy link
Author

if using shell module and changed the php version the task Enable crb and DNF module for CentOS 8+ crashes with an error:

dnf module enable -y php:remi-8.0
Last metadata expiration check: 1:36:47 ago on Tue 08 Oct 2024 01:56:42 PM MSK.
Dependencies resolved.
The operation would result in switching of module 'php' stream 'remi-7.4' to stream 'remi-8.0'
Error: It is not possible to switch enabled streams of a module unless explicitly enabled via configuration option module_stream_switch.
It is recommended to rather remove all installed content from the module, and reset the module using 'dnf module reset <module_name>' command. After you reset the module, you can install the other stream.

for example:

-- php_version: "7.4"
++ php_version: "8.0"


when:
- ansible_os_family == 'RedHat'
Copy link
Author

Choose a reason for hiding this comment

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

This condition is not necessary because it is declared at a higher level.

Copy link

github-actions bot commented Feb 8, 2025

This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Feb 8, 2025
Copy link

This pr has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@github-actions github-actions bot closed this Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant