-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
41 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Setup ansible | ||
descriptions: Install ansible and required roles/collections | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
- name: Install ansible and required roles/collections | ||
shell: bash | ||
run: | | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags autorestic \ | ||
--extra-vars "b2_account_id=ci b2_account_key=ci \ | ||
backblaze_homeassistant_key=ci \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags dashdot | ||
docker ps --filter name=dashdot | grep --quiet dashdot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags diun \ | ||
--extra-vars "telegram_token=ci telegram_chatids=ci" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
docker network create --driver bridge proxy | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags dozzle \ | ||
--extra-vars "domain=ci" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags duckdns \ | ||
--extra-vars "duckdns_domain=ci duckdns_token=ci" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags gatus \ | ||
--extra-vars "telegram_token=ci telegram_chatids=ci" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags glances | ||
docker ps --filter name=glances | grep --quiet glances |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags healthchecks | ||
docker ps --filter name=healthchecks | grep --quiet healthchecks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,19 +18,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
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" | ||
backblaze_homeassistant_key=ci backblaze_zigbee2mqtt_key=ci \ | ||
healthchecks_backup_homeassistant_url=ci" | ||
docker ps --filter name=homeassistant | grep --quiet homeassistant | ||
docker exec homeassistant hass --config /config --script check_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
docker network create --driver bridge proxy | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags homepage \ | ||
--extra-vars "domain=ci" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags mosquitto | ||
docker ps --filter name=mosquitto | grep --quiet mosquitto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags piper | ||
docker ps --filter name=piper | grep --quiet piper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
docker network create --driver bridge proxy | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags speedtest \ | ||
--extra-vars "domain=ci" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags tailscale | ||
docker ps --filter name=tailscale | grep --quiet tailscale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags traefik \ | ||
--extra-vars "domain=ci duckdns_token=ci \ | ||
traefik_username=ci traefik_password=ci \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags uptimekuma | ||
docker ps --filter name=uptimekuma | grep --quiet uptimekuma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.yaml | ||
ansible-playbook main.yaml --limit localhost --tags whisper | ||
docker ps --filter name=whisper | grep --quiet whisper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
||
- uses: ./.github/actions/setup-ansible | ||
- run: | | ||
sed -i '/vars_files/I,+1 d' main.yaml | ||
sed -i '/vault_password_file/d' ansible.cfg | ||
sed -i '/devices/I,+1 d' roles/zigbee2mqtt/files/compose.yaml | ||
sed -i '/platform/d' roles/zigbee2mqtt/files/compose.yaml | ||
pip install ansible | ||
ansible-galaxy install --role-file requirements.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" | ||
backblaze_homeassistant_key=ci backblaze_zigbee2mqtt_key=ci \ | ||
healthchecks_backup_homeassistant_url=ci" | ||
docker ps --filter name=zigbee2mqtt | grep --quiet zigbee2mqtt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters