# \-f option in apache2\_module

**URL:** <https://forum.ansible.com/t/f-option-in-apache2-module/19942>\
**Category:** Ansible Project\
**Created:** [December 4, 2015, 4:54pm UTC](https://forum.ansible.com/t/f-option-in-apache2-module/19942 "2015-12-04T16:54:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoann\_DAVID](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yoann\_DAVID](https://forum.ansible.com/u/Yoann_DAVID)\
**Post date:** [December 4, 2015, 4:54pm UTC](https://forum.ansible.com/t/f-option-in-apache2-module/19942/1 "2015-12-04T16:54:17Z")

</div>

Since apache 2.4 on Debian to disable autoindex module we must confirm with “Yes, do as I say!” sentence or run a2dismod command with -f option :

> sudo a2dismod autoindex  
> [sudo] password for umanit:  
> WARNING: The following essential module will be disabled.  
> This might result in unexpected behavior and should NOT be done  
> unless you know exactly what you are doing!  
> autoindex
> 
> To continue type in the phrase ‘Yes, do as I say!’ or retry by passing ‘-f’: Yes, do as I say!

I don’t find how to pass -f option with Ansible ?

Thanks  
Yoann

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 5, 2015, 5:41am UTC](https://forum.ansible.com/t/f-option-in-apache2-module/19942/2 "2015-12-05T05:41:49Z")

</div>

Not currently, but you can open up a feature request in github for it  
to be implemented.
