0
respostas

Não é possível acessar esse site

Fiz todo o paso a passo do terraform e playbook, porem quando tento acessar a pagina aprece essa mensagem
Insira aqui a descrição dessa imagem para ajudar na acessibilidade

- hosts: terraform-ansible
  tasks:
  - name: instalando python3 e virtualenv
    apt:
      pkg:
      - python3
      - virtualenv
      update_cache: yes
    become: yes
  - name: Git Clone
    ansible.builtin.git:
      repo: https://github.com/alura-cursos/clientes-leo-api.git
      dest: /home/ubuntu/tcc
      version: master
      force: yes
  - name: instalando dependencias com pip
    pip:
      virtualenv: /home/ubuntu/tcc/venv
      requirements: /home/ubuntu/tcc/requirements.txt
  - name: Alterando Hosts do settings
    lineinfile:
      path: /home/ubuntu/tcc/setup/settings.py
      regexp: 'ALLOWED_HOSTS'
      line: "ALLOWED_HOSTS = ['*']"
      backrefs: yes
  - name: Atualizando pip, setuptools e wheel
    pip:
        virtualenv: /home/ubuntu/tcc/venv
        name:
          - pip
          - setuptools
          - wheel
        state: latest
  - name: configurando o banco de dados
    shell: '. /home/ubuntu/tcc/venv/bin/activate; python /home/ubuntu/tcc/manage.py migrate'
  - name: carregando dados inicias
    shell: '. /home/ubuntu/tcc/venv/bin/activate; python /home/ubuntu/tcc/manage.py loaddata clientes.json'
  - name: iniciando servidor 
    shell: '. /home/ubuntu/tcc/venv/bin/activate; nohup python /home/ubuntu/tcc/manage.py runserver 0.0.0.0:8000 &'