# seboolean module in 2.10

**URL:** <https://forum.ansible.com/t/seboolean-module-in-2-10/35127>\
**Category:** Ansible Project\
**Created:** [May 6, 2021, 7:02pm UTC](https://forum.ansible.com/t/seboolean-module-in-2-10/35127 "2021-05-06T19:02:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Reagan](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Post date:** [May 6, 2021, 7:02pm UTC](https://forum.ansible.com/t/seboolean-module-in-2-10/35127/1 "2021-05-06T19:02:07Z")

</div>

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:

```auto

- hosts:
- centos
tasks:
- name: "seboolean"
seboolean:
name: httpd_can_network_connect
state: yes
persistent: yes

```

Output:

```auto

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

```

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [May 6, 2021, 7:10pm UTC](https://forum.ansible.com/t/seboolean-module-in-2-10/35127/2 "2021-05-06T19:10:46Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![David\_Reagan](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Post date:** [May 6, 2021, 7:44pm UTC](https://forum.ansible.com/t/seboolean-module-in-2-10/35127/3 "2021-05-06T19:44:51Z")

</div>

> 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](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…

---

<div class="post-metadata">

**Author:** ![David\_Reagan](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Post date:** [May 7, 2021, 3:54pm UTC](https://forum.ansible.com/t/seboolean-module-in-2-10/35127/4 "2021-05-07T15:54:33Z")

</div>

Neither [https://docs.ansible.com/ansible/latest/installation\_guide/intro\_installation.html#installing-and-running-the-devel-branch-from-source](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](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?
