Skip to content

Conversation

@vbotka
Copy link
Contributor

@vbotka vbotka commented Jul 24, 2025

SUMMARY

Fix #663

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

sysctl

ADDITIONAL INFORMATION

In the below task, /etc/sysctl.conf is always reloaded

- ansible.posix.sysctl:
  sysctl_file: /boot/loader.conf
  name: security.jail.param.jid
  value: '"1"'

This PR makes the module fail

fatal: [foo.bar]: FAILED! => 
    changed: false
    msg: /boot/loader.conf can not be reloaded. Set reload=False.

@softwarefactory-project-zuul
Copy link
Contributor

@vbotka
Copy link
Contributor Author

vbotka commented Jul 24, 2025

For the record:

FATAL: Environment --remote freebsd/13.3 is unknown.

@vbotka vbotka changed the title Fix #663 - In FreeBSD, fail if loader.conf shall be reloaded. In FreeBSD, fail if loader.conf shall be reloaded. Jul 24, 2025
@vbotka
Copy link
Contributor Author

vbotka commented Sep 25, 2025

ping!

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.

In FreeBSD, the module sysctl always reports changed when sysctl_file is not /etc/sysctl.conf or /etc/sysctl.conf.local

1 participant