Skip to content

Commit 152f339

Browse files
committed
Debug.
1 parent 788bf44 commit 152f339

File tree

1 file changed

+32
-41
lines changed

1 file changed

+32
-41
lines changed

.github/workflows/node-increase-disk.yml

Lines changed: 32 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -31,52 +31,42 @@ jobs:
3131
- name: Checkout
3232
uses: actions/checkout@v4
3333

34-
- name: Get Hosts Config
35-
id: get-hosts
36-
uses: keithweaver/aws-s3-github-action@v1.0.0
37-
with:
38-
command: cp
39-
source: ${{vars.S3_ANSIBLE_HOST_FILE}}
40-
destination: ./ansible-hosts
41-
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
42-
aws_secret_access_key: ${{ secrets.AWS_SECRET_KEY }}
43-
aws_region: ${{vars.S3_REGION}}
44-
45-
# - name: Run playbook
46-
# uses: arillso/action.playbook@main
34+
# - name: Get Hosts Config
35+
# id: get-hosts
36+
# uses: keithweaver/aws-s3-github-action@v1.0.0
4737
# with:
48-
# # Required, playbook filepath
49-
# playbook: ./scripts/ansible/aws/ec2-modify-volume-size.yml
50-
# inventory: ./ansible-hosts
51-
# galaxy_file: ./scripts/ansible/aws/requirements.yml
52-
# verbose: 3
53-
# extra_vars: "aws_region=${{github.event.inputs.aws_region}} instance_id=${{inputs.instance_id}} aws_secret_key=${{secrets.AWS_SECRET_KEY}} aws_access_key_id=${{secrets.AWS_ACCESS_KEY_ID}} volume_size=${{github.event.inputs.disk_size}} ansible_python_interpreter='/usr/bin/python3'"
38+
# command: cp
39+
# source: ${{vars.S3_ANSIBLE_HOST_FILE}}
40+
# destination: ./ansible-hosts
41+
# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
42+
# aws_secret_access_key: ${{ secrets.AWS_SECRET_KEY }}
43+
# aws_region: ${{vars.S3_REGION}}
5444

55-
- uses: actions/setup-python@v5
56-
with:
57-
python-version: '3.11'
45+
# - uses: actions/setup-python@v5
46+
# with:
47+
# python-version: '3.11'
5848

59-
- name: Install Ansible + deps
60-
run: |
61-
python -m pip install --upgrade pip
62-
pip install "ansible-core>=2.16" boto3 botocore packaging
49+
# - name: Install Ansible + deps
50+
# run: |
51+
# python -m pip install --upgrade pip
52+
# pip install "ansible-core>=2.16" boto3 botocore packaging
6353

64-
- name: Galaxy install
65-
run: ansible-galaxy install -r ./scripts/ansible/aws/requirements.yml
54+
# - name: Galaxy install
55+
# run: ansible-galaxy install -r ./scripts/ansible/aws/requirements.yml
6656

67-
- name: Run playbook
68-
env:
69-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
70-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
71-
run: |
72-
ansible-playbook \
73-
-i ./ansible-hosts \
74-
--extra-vars "aws_region=${{github.event.inputs.aws_region}} instance_id=${{inputs.instance_id}} aws_secret_key=${{secrets.AWS_SECRET_KEY}} aws_access_key_id=${{secrets.AWS_ACCESS_KEY_ID}} volume_size=${{github.event.inputs.disk_size}} ansible_python_interpreter='/usr/bin/python3'" \
75-
./scripts/ansible/aws/ec2-modify-volume-size.yml
57+
# - name: Run playbook
58+
# env:
59+
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
60+
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
61+
# run: |
62+
# ansible-playbook \
63+
# -i ./ansible-hosts \
64+
# --extra-vars "aws_region=${{github.event.inputs.aws_region}} instance_id=${{inputs.instance_id}} aws_secret_key=${{secrets.AWS_SECRET_KEY}} aws_access_key_id=${{secrets.AWS_ACCESS_KEY_ID}} volume_size=${{github.event.inputs.disk_size}} ansible_python_interpreter='/usr/bin/python3'" \
65+
# ./scripts/ansible/aws/ec2-modify-volume-size.yml
7666

77-
- name: Wait for AWS to finish provisioning the disk
78-
run: sleep 30m
79-
shell: bash
67+
# - name: Wait for AWS to finish provisioning the disk
68+
# run: sleep 30m
69+
# shell: bash
8070

8171
- name: Extend file system
8272
id: extend-file-system
@@ -93,14 +83,15 @@ jobs:
9383
9484
- name: Get SSM output
9585
id: get-ssm-output
96-
if: steps.extend-file-system.outcome == 'success'
86+
# if: steps.extend-file-system.outcome == 'success'
9787
env:
9888
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
9989
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
10090
AWS_DEFAULT_REGION: ${{ inputs.aws_region }}
10191
run: |
10292
COMMAND_OUTPUT=$(aws ssm list-command-invocations --command-id ${{ steps.extend-file-system.outputs.command-id }} --details | jq -c .)
10393
echo "COMMAND_OUTPUT=$COMMAND_OUTPUT" >> $GITHUB_ENV
94+
echo "Command Output: $COMMAND_OUTPUT"
10495
10596
- name: Check SSM output
10697
if: steps.get-ssm-output.outcome == 'success' && contains(env.COMMAND_OUTPUT, 'error')

0 commit comments

Comments
 (0)