Skip to content

Commit

Permalink
Deploy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed May 26, 2020
1 parent aaf0d10 commit b71b4bb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 13 deletions.
49 changes: 38 additions & 11 deletions deploy/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,54 @@
vars:
ansible_python_interpreter: /usr/bin/python3
project_root: /project
# wtd_srv_docker_compose_package_state: latest
# ## Service Management
# wtd_srv_docker_service: "docker"
# # State can be started|stopped
# wtd_srv_docker_service_state: "started"
# wtd_srv_docker_service_enabled: true

# roles:
# - while_true_do.srv_docker
tasks:

- name: Disable SELinux
selinux:
state: disabled

- name: Ensure base requirements are installed
package:
name:
- git
- htop
- httpie
- tmux
- vim
- wget
- docker
- docker-compose
- dnf-utils
- python3-devel
- postgresql
- nginx
- nano
- dnf-plugins-core
state: present
retries: 5
register: result
until: result is succeeded


# TODO: trocar pelo modulo correto
- name: Add docker-ce repo
command: dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo

- name: Install docker
package:
name:
- docker-ce
- docker-ce-cli
- containerd.io

- name: Install Pip requirements
pip:
name:
- docker-compose

- name: Start service docker, if not started
service:
name: docker
state: started

- name: Git Repo
git:
repo: https://github.com/flask-extensions/flaskextensions.com
Expand All @@ -44,6 +70,7 @@
- name: Create and start services
docker_compose:
project_src: "{{ project_root }}"
build: yes
register: output

- debug:
Expand Down
3 changes: 2 additions & 1 deletion deploy/hosts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[do]
64.227.9.194
#192.241.137.28
161.35.57.225

[do:vars]
ansible_ssh_user=root
Expand Down
1 change: 0 additions & 1 deletion fexui/js/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const instance = axios.create({
baseURL: `//${window.location.hostname}:8000/`,
// baseURL: "http://161.35.57.225:8000/",
});

new Vue({
Expand Down

0 comments on commit b71b4bb

Please sign in to comment.