• Resolved notromda

    (@notromda)


    I have a number of sites to manage on hosts that I manage. Instead of logging in by hand and configuring the email, optimizing etc, I’d like to make an ansible script to do it for me. What steps would I need to do in order to get wordfence configured?

    So far I see:

    set alertEmails in wf_config
    set up .htaccess and wordfence-waf.php
    Configure with wp eval ‘wordfence::importSettings(..);’

    I haven’t yet attempted but does this sound possible?

Viewing 1 replies (of 1 total)
  • Hi @notromda,
    You are welcome to try though I think this will be a bit tricky. The Firewall Optimization for example affects different files and generates different code depending on sever variables. So you would have to attempt to replicate the requests that are made via the UI unless you wanted to rewrite all that logic. Those actions require admin login, so you’d also have to figure out a way of authenticating the requests. I think there are a few other things that are adjusted based on server variables.

    You are welcome to try, but I’d expect it to be a bit of a bumpy road. Of course, everything is possible. ??

Viewing 1 replies (of 1 total)
  • The topic ‘automate install with ansible/wpcli/database’ is closed to new replies.