seboolean module in 2.10

260 views
Skip to first unread message

David Reagan

unread,
May 6, 2021, 3:02:07 PM5/6/21
to Ansible Project

The seboolean module has apparently disappeared from Ansible 2.10. It also doesn't exist in community.general.

I couldn't find any documentation saying it was deprecated.

Is there a replacement?

Example playbook:
```
- hosts:
   - centos
tasks:
- name: "seboolean"
  seboolean:
  name: httpd_can_network_connect
  state: yes
  persistent: yes
```
Output:
```
ERROR! couldn't resolve module/action 'seboolean'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/user/ansible_test_suite/tmp.yml': line 4, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
    - name: "seboolean"
      ^ here
```

Felix Fontein

unread,
May 6, 2021, 3:11:01 PM5/6/21
to ansible...@googlegroups.com
Hi,

> The seboolean module has apparently disappeared from Ansible 2.10.

according to ansible-base's ansible_builtin_runtime.yml, the module
resides in ansible.posix, and there I can find it:
https://github.com/ansible-collections/ansible.posix/blob/main/plugins/modules/seboolean.py

> It also doesn't exist in community.general.

Why do you think the module should be in community.general?


> ERROR! couldn't resolve module/action 'seboolean'. This often
> indicates a misspelling, missing collection, or incorrect module path.

Do you have Ansible installed, and not just ansible-base with
community.general? Because if you don't have ansible.posix installed
(which comes with Ansible), the above message is not surprising.

Cheers,
Felix


David Reagan

unread,
May 6, 2021, 3:44:52 PM5/6/21
to Ansible Project
> Why do you think the module should be in community.general?
Because that is where I found seport. https://github.com/ansible-collections/community.general/blob/main/plugins/modules/seport.py (Or, now that I look at that file, thought I had found seport.)

> Do you have Ansible installed, and not just ansible-base with
community.general? Because if you don't have ansible.posix installed
(which comes with Ansible), the above message is not surprising.

I'm testing my roles by running Ansible from source. So I have the main ansible repo checked out to stable-2.10, and I run `source ansible/hacking/env-setup` to start using it.

Am I missing a step? I guess I will go review the running from source docs....

David Reagan

unread,
May 7, 2021, 11:54:33 AM5/7/21
to Ansible Project
Neither https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-and-running-the-devel-branch-from-source nor https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#common-environment-setup doesn't mention anything about needing to install ansible.posix separately from Ansible. And I thought that the ansible.* collections were actually part of Ansible itself, so you would not need to install them in the first place. Am I missing something? Is that only true of packaged Ansible and not true for a git clone?
Reply all
Reply to author
Forward
0 new messages