Skip to content

Commit

Permalink
Dev Ansible deploy - run update tags only
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Oct 3, 2024
1 parent a270d96 commit 6d397ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ansible-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Run Ansible Playbook
run: |
cd ansible
ansible-playbook -i hosts dev.yml
ansible-playbook -i hosts dev.yml --tags update
env:
ANSIBLE_HOST_KEY_CHECKING: 'False'
ANSIBLE_REMOTE_USER: ${{ secrets.SSH_USER }}
Expand Down
10 changes: 4 additions & 6 deletions ansible/roles/galaxy_labs_engine/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,34 +51,32 @@
loop: "{{ labs_engine.files }}"
tags: config

- name: update media file ownership
- name: Set media file ownership
file: dest={{ django_root }}/app/media owner=www-data group=www-data mode=u=rwX,g=rwX,o=rwX recurse=yes
tags:
- permissions
- update

- name: update log file ownership
- name: Set log file ownership
file: dest={{ django_root }}/app/logs owner=www-data group=www-data mode=u=rwX,g=rwX,o=rwX recurse=yes
tags:
- permissions
- update

- name: update sqlite3 database ownership
- name: Update sqlite3 database ownership
file: dest={{ django_root }}/db.sqlite3 owner=www-data group=www-data mode=u=rw,g=rw,o=r
tags:
- permissions
- update
ignore_errors: yes

- name: update sqlite3 database directory permissions
- name: Update sqlite3 database directory permissions
file:
dest: "{{ django_root }}"
owner: root
group: www-data
mode: u=rwx,g=rwx,o=rx
tags:
- permissions
- update

- name: Django create django_cache table with 'manage.py createcachetable'
shell: >
Expand Down

0 comments on commit 6d397ba

Please sign in to comment.