summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/system/seboolean.py
Commit message (Collapse)AuthorAgeFilesLines
* Update requirements for seboolean module (fixes #23028)Jeremy L. Gaddis2017-03-291-1/+1
|
* New metadata 1.0 (#22587)Toshio Kuratomi2017-03-141-3/+4
| | | | | | | | | | | | | | | | Changes to the metadata format were approved here: https://github.com/ansible/proposals/issues/54 * Update documentation to the new metadata format * Changes to metadata-tool to account for new metadata * Add GPL license header * Add upgrade subcommand to upgrade metadata version * Change default metadata to the new format * Fix exclusion of non-modules from the metadata report * Fix ansible-doc for new module metadata * Exclude metadata version from ansible-doc output * Fix website docs generation for the new metadata * Update metadata schema in valiate-modules test * Update the metadata in all modules to the new version
* Refreshed metadata for core modulesToshio Kuratomi2016-12-081-0/+4
|
* Call main in conditional way - systemFabio Alessandro Locati2016-12-081-1/+3
|
* Examples syntax batch4 (#5620)Sam Doran2016-12-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change example syntax on authorized_key module * Change example syntax on cron module * Change example syntax on group module * Change example syntax on hostname module * Change example syntax on seboolean module * Change example syntax on selinux module * Change example syntax on service module * Change example syntax on sysctl module * Change example syntax on systemd module * Change example syntax on user module * Change example syntax on debug module * Change example syntax on fail module * Change example syntax on include module * Change example syntax on include_role module * Change example syntax on include_vars module * Change example syntax on pause module * Change example syntax on wait_for module * Change example syntax on apache2_module module * > Change example syntax on django_manage module * Change example syntax on htpasswd module
* Convert name to bytes to compare it to boolsMichael Scherer2016-12-081-1/+2
| | | | | | | | | | On python 3, bools is a list of bytes: >>> rc,bools = selinux.security_get_boolean_names() >>> 'virt_use_nfs' in bools False >>> bools [b'abrt_anon_write', b'abrt_handle_event', ...]
* Add support for selinux_boolean_sub conversion (#4570)Michael Scherer2016-12-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | SELinux since 2012 use a configuration file to convert boolean names from a old name to a new name, for preserving backward compatibility. However, this has to be done explicitely when using the python bindings, and the module was not doing it. Openshift ansible script use this construct to detect if a boolean exist or not: - name: Check for existence of virt_sandbox_use_nfs seboolean command: getsebool virt_sandbox_use_nfs register: virt_sandbox_use_nfs_output failed_when: false changed_when: false - name: Set seboolean to allow nfs storage plugin access from containers(sandbox) seboolean: name: virt_sandbox_use_nfs state: yes persistent: yes when: virt_sandbox_use_nfs_output.rc == 0 On a system where virt_sandbox_use_nfs do not exist, this work. But on a system where virt_sandbox_use_nfs is a alias to virt_use_nfs (like Fedora 24), this fail because the seboolean is not aware of the alias.
* Port seboolean to py3/py2.4 syntax (#3679)Michael Scherer2016-12-081-4/+5
|
* Proper author info for all remaining modulesGreg DeKoenigsberg2016-12-081-1/+1
|
* file extensions!Michael DeHaan2016-12-081-0/+212