Hi <@U6GKV8TQQ> I'm reading your blog about Fleet...
# general
Hi @CptOfEvilMinions I'm reading your blog about Fleet installation, I tried the ansible, but it's not finishing for me. I debug this part of the code and got this result:
Copy code
- hosts: all
  become: yes
  become_user: root
    - name: Vault healthcheck
        url: "<>"
        follow_redirects: none
        method: GET
        validate_certs: 'no'
        remote_src: yes
      register: _result
    - debug: msg="{{_result}}"
Copy code
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
ok: []

TASK [Vault healthcheck] ****************************************************************************************************************************************************************************************
fatal: []: FAILED! => {"changed": false, "connection": "close", "content_length": "42", "content_type": "text/html; charset=utf-8", "date": "Thu, 14 Jan 2021 20:59:30 GMT", "elapsed": 0, "location": "<>", "msg": "Status code was 307 and not [200]: HTTP Error 307: Temporary Redirect", "redirected": false, "status": 307, "url": "<>"}
If I use curl -L (to follow redirect) I got this:
Copy code
automation@fleetdm:~$ curl -k -L <>
<!DOCTYPE html>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="/assets/bundle-d647bb374238130a2046.css">
    <link rel="shortcut icon" href="/assets/favicon.ico">

    <title>Fleet for osquery</title>
    <script type="text/javascript">
        var urlPrefix = "";
    <div id="app"></div>
    <script async defer src="/assets/bundle-4a09707c77216776a8be.js" onload="this.parentElement.removeChild(this)"></script>

    <script>document.addEventListener("touchstart", function() {},false);</script>

So I set the follow_redirect to all in the ansible fleetdm.yml but when it's installing nginx I got this error:
Hey @plaintext thanks for bringing this to my attention. Can you please file a Github issue here: https://github.com/CptOfEvilMinions/FleetDM-Automation/issues
Also please remove your debug/error prints from Slack and into the Github issue.
OHHHH I see why. The Vault healthcheck is querying FleetDM and gets a 307 redirect but my Ansible task has redirects disabled. Change
follow_redirects: none
follow_redirects: yes
As for why NGINX is failing to install I am not sure. I've never seen that error. It looks to be an APT error.
@plaintext I have updated the Ansible playbook to fix the Healthcheck error. Please do
git pull
for the latest changes
Good catch and thanks for submitting this bug 🙂
🙌 1
The nginx error was because my server doesn't have ipv6 enabled. @CptOfEvilMinions