Skip to content

Commit

Permalink
Add dummy vault file for ci
Browse files Browse the repository at this point in the history
No more need to send extra-vars.
  • Loading branch information
claha committed Aug 13, 2023
1 parent bbbc5f1 commit b55771d
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 37 deletions.
20 changes: 19 additions & 1 deletion .github/actions/setup-ansible/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,23 @@ runs:
pip install ansible
ansible-galaxy install --role-file requirements.yaml
sed -i '/vars_files/I,+1 d' main.yaml
echo "---
b2_account_id: ci
b2_account_key: ci
backblaze_homeassistant_key: ci
backblaze_zigbee2mqtt_key: ci
domain: ci
duckdns_domain: ci
duckdns_token: ci
healthchecks_backup_homeassistant_ping_url: ci
healthchecks_backup_zigbee2mqtt_ping_url: ci
healthchecks_secret_key: ci
letsencrypt_email: ci
letsencrypt_provider: ci
mqtt_server: ci
telegram_chatids: ci
telegram_token: ci
traefik_password: ci
traefik_username: ci
" > vars/vault.yaml
sed -i '/vault_password_file/d' ansible.cfg
7 changes: 1 addition & 6 deletions .github/workflows/autorestic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags autorestic \
--extra-vars "b2_account_id=ci b2_account_key=ci \
backblaze_homeassistant_key=ci \
backblaze_zigbee2mqtt_key=ci \
healthchecks_backup_homeassistant_ping_url=ci \
healthchecks_backup_zigbee2mqtt_ping_url=ci"
ansible-playbook main.yaml --limit localhost --tags autorestic
cd ~/autorestic && docker compose run autorestic
3 changes: 1 addition & 2 deletions .github/workflows/diun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags diun \
--extra-vars "telegram_token=ci telegram_chatids=ci"
ansible-playbook main.yaml --limit localhost --tags diun
docker ps --filter name=diun | grep --quiet diun
3 changes: 1 addition & 2 deletions .github/workflows/dozzle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- run: |
docker network create --driver bridge proxy
ansible-playbook main.yaml --limit localhost --tags dozzle \
--extra-vars "domain=ci"
ansible-playbook main.yaml --limit localhost --tags dozzle
docker ps --filter name=dozzle | grep --quiet dozzle
3 changes: 1 addition & 2 deletions .github/workflows/duckdns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags duckdns \
--extra-vars "duckdns_domain=ci duckdns_token=ci"
ansible-playbook main.yaml --limit localhost --tags duckdns
docker ps --filter name=duckdns | grep --quiet duckdns
3 changes: 1 addition & 2 deletions .github/workflows/gatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags gatus \
--extra-vars "telegram_token=ci telegram_chatids=ci"
ansible-playbook main.yaml --limit localhost --tags gatus
docker ps --filter name=gatus | grep --quiet gatus
3 changes: 1 addition & 2 deletions .github/workflows/healthchecks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags healthchecks \
--extra-vars "healthchecks_secret_key=ci"
ansible-playbook main.yaml --limit localhost --tags healthchecks
docker ps --filter name=healthchecks | grep --quiet healthchecks
6 changes: 1 addition & 5 deletions .github/workflows/homeassistant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags homeassistant \
--extra-vars "domain=ci b2_account_id=ci b2_account_key=ci \
backblaze_homeassistant_key=ci backblaze_zigbee2mqtt_key=ci \
healthchecks_backup_homeassistant_url=ci \
healthchecks_backup_zigbee2mqtt_url=ci"
ansible-playbook main.yaml --limit localhost --tags homeassistant
docker ps --filter name=homeassistant | grep --quiet homeassistant
docker exec homeassistant hass --config /config --script check_config
3 changes: 1 addition & 2 deletions .github/workflows/homepage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- run: |
docker network create --driver bridge proxy
ansible-playbook main.yaml --limit localhost --tags homepage \
--extra-vars "domain=ci"
ansible-playbook main.yaml --limit localhost --tags homepage
docker ps --filter name=homepage | grep --quiet homepage
3 changes: 1 addition & 2 deletions .github/workflows/monocker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags monocker \
--extra-vars "telegram_token=ci telegram_chatids=ci"
ansible-playbook main.yaml --limit localhost --tags monocker
docker ps --filter name=monocker | grep --quiet monocker
3 changes: 1 addition & 2 deletions .github/workflows/speedtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- run: |
docker network create --driver bridge proxy
ansible-playbook main.yaml --limit localhost --tags speedtest \
--extra-vars "domain=ci"
ansible-playbook main.yaml --limit localhost --tags speedtest
docker ps --filter name=speedtest | grep --quiet speedtest
5 changes: 1 addition & 4 deletions .github/workflows/traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-ansible
- run: |
ansible-playbook main.yaml --limit localhost --tags traefik \
--extra-vars "domain=ci duckdns_token=ci \
traefik_username=ci traefik_password=ci \
letsencrypt_email=ci letsencrypt_provider=ci"
ansible-playbook main.yaml --limit localhost --tags traefik
docker ps --filter name=traefik | grep --quiet traefik
6 changes: 1 addition & 5 deletions .github/workflows/zigbee2mqtt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
sed -i '/devices/I,+1 d' roles/zigbee2mqtt/files/compose.yaml
sed -i '/platform/d' roles/zigbee2mqtt/files/compose.yaml
ansible-playbook main.yaml --limit localhost --tags zigbee2mqtt \
--extra-vars "mqtt_server=ci b2_account_id=ci b2_account_key=ci \
backblaze_homeassistant_key=ci backblaze_zigbee2mqtt_key=ci \
healthchecks_backup_homeassistant_url=ci \
healthchecks_backup_zigbee2mqtt_url=ci"
ansible-playbook main.yaml --limit localhost --tags zigbee2mqtt
docker ps --filter name=zigbee2mqtt | grep --quiet zigbee2mqtt

0 comments on commit b55771d

Please sign in to comment.