Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to git current branch #57

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions build/dms-app/ansible/setup-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,19 @@
with_items:
- "{{ application_users }}"

- name: Create File System
community.general.filesystem:
fstype: xfs
dev: /dev/xvdb

- name: Mount File System
mount:
path: "{{ item.path }}"
src: "{{ item.src }}"
fstype: "{{ item.fstype }}"
state: mounted
with_items:
"{{ fstab_mounts }}"
# - name: Create File System
# community.general.filesystem:
# fstype: xfs
# dev: /dev/xvdb

# - name: Mount File System
# mount:
# path: "{{ item.path }}"
# src: "{{ item.src }}"
# fstype: "{{ item.fstype }}"
# state: mounted
# with_items:
# "{{ fstab_mounts }}"

- name: Make Group Permission
become: true
Expand Down Expand Up @@ -268,6 +268,9 @@

- name: Get Current branch
shell: |
git init
git add * .[^.]*
git commit -qm 'Commit CodeDeploy checkout'
git rev-parse --abbrev-ref HEAD
args:
chdir: /home/mbis_app/data_management_system
Expand Down
1 change: 0 additions & 1 deletion build/dms-app/ansible/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ application_users:

other_users:


fstab_mounts:
- src: /dev/xvdb
path: /home/mbis_app
Expand Down
2 changes: 1 addition & 1 deletion script/code-deploy/AfterInstall/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

sudo amazon-linux-extras install ansible2 -y
sudo pip2 install botocore boto3 python-ldap
ansible-galaxy collection install amazon.aws community.aws community.general


echo "RUN setup-server.yml"
ansible-playbook /tmp/mbis_front/build/dms-app/ansible/setup-server.yml
echo "RUN main.yml"
Expand Down
Loading