Hii

On Tue, 20 Dec 2022 at 12:47, farrukh ahmed <[email protected]> wrote:
>
> Can we do the same with blockinfile?

Maybe. But, what one can do, is not always what one should do - see below.

> PS: It is mandatory for me to do this with the blockinfile module.

This is not correct - the file should not be edited at all, because it
is a package provided file.
So, any updates will overwrite your changes. Plus you need to resort
to kludges (imho) like blockinfile.
What you should do, is put your local changes in a properly named ini
file below /etc/php/7.4/fpm/conf.d, which won't be touched by anyone
else.

Dick

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLaYD-UTvsx8g0kpC5DMJjxEj4tAj67K-Yw-TMMj4HWhPA%40mail.gmail.com.

Reply via email to