Configuring htpasswd (not htpassword) basic auth in Discourse NGINX

htpasswd -nb password_file =user= =password=

Then put that in this field, so it becomes the creds for htpasswd.

run:
    - replace:
       filename: "/etc/nginx/conf.d/discourse.conf"
       from: "# auth_basic on;"
       to: "auth_basic on;"
    - replace:
       filename: "/etc/nginx/conf.d/discourse.conf"
       from: "# auth_basic_user_file /etc/nginx/htpasswd;"
       to: "auth_basic_user_file /etc/nginx/htpasswd;"
    - replace:
       filename: "/etc/nginx/conf.d/discourse.conf"
       from: "location = /srv/status {"
       to: "location = /srv/status {
           auth_basic off;"
    - file:
       path: "/etc/nginx/htpasswd"
       contents: |
        =creds=