Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
clean up playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
hirundinidae committed Oct 15, 2023
1 parent 00ba176 commit 377264e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
python3 ansible.py
- name: Run Ansible Playbook
run: |
rm -rf .git
cd deploy_bundle
ansible-playbook nginx.yml
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ jobs:
python3 ansible.py
- name: Run Ansible Playbook
run: |
rm -rf .git
cd deploy_bundle
ansible-playbook nginx.yml
4 changes: 3 additions & 1 deletion ansible/tasks/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
dest: /home/admin/app/
src: ../../
mode: "555"
owner: admin
- name: Install venv requirements
ansible.builtin.package:
name:
- virtualenv
- python3-venv
- python3-pip
- python3-setuptools
state: present
Expand Down Expand Up @@ -42,6 +43,7 @@
dest: /etc/supervisor/conf.d/flaskapp.conf
src: ../flaskapp.conf
mode: "644"
owner: admin
notify: Reload supervisor
- name: Create supervisor log dir
ansible.builtin.file:
Expand Down
4 changes: 3 additions & 1 deletion deploy_bundle/tasks/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
dest: /home/admin/app/
src: ../../
mode: "555"
owner: admin
- name: Install venv requirements
ansible.builtin.package:
name:
- virtualenv
- python3-venv
- python3-pip
- python3-setuptools
state: present
Expand Down Expand Up @@ -42,6 +43,7 @@
dest: /etc/supervisor/conf.d/flaskapp.conf
src: ../flaskapp.conf
mode: "644"
owner: admin
notify: Reload supervisor
- name: Create supervisor log dir
ansible.builtin.file:
Expand Down
2 changes: 1 addition & 1 deletion templates/usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1>{% block title %}Usage{% endblock %}</h1>

{% block content %}
<!--- This usage.md stores the instructions for bundle.zip, put through md to html parser --->
<h2 id="deploy-my-hack-usage">Deploy My Hack usage</h2>
<h2 id="deploy-my-hack-usage">How to use InfraBundle?</h2>
<ol type="1">
<li>Fill out the <a href="{{ url_for('deploy_form') }}">deployment settings</a> form to generate a bundle and extract the downloaded bundle containing deployment scripts</li>
</ol>
Expand Down

0 comments on commit 377264e

Please sign in to comment.