-
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.
* chore: libsecret * ci: gitleaks * ci: ansible-lint * chore: move tmux to tools * ci: debian * ci: try ansible * ci: ansible * ci: ansible * ci: ansible * ci: ansible * chore: flatpak * ci: ansible * chore: pip pipx executable * chore: pip * chore: podman * chore: podman * ci: ansible * ci: ansible setup ubuntu * chore: htop * ci: update
- Loading branch information
1 parent
12de968
commit 6e8d6fc
Showing
14 changed files
with
154 additions
and
8 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,48 @@ | ||
name: Ansible Setup Ubuntu | ||
on: | ||
pull_request: | ||
paths: ansible/playbooks/debian.yml | ||
push: | ||
paths: ansible/playbooks/debian.yml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
name: Setup Ubuntu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt install -y age python3-paramiko | ||
curl -LO https://github.com/getsops/sops/releases/download/v3.9.0/sops-v3.9.0.linux.amd64 | ||
sudo mv sops-v3.9.0.linux.amd64 /usr/local/bin/sops | ||
sudo chmod +x /usr/local/bin/sops | ||
- name: Add age key | ||
run: | | ||
mkdir -p ~/.config/sops/age | ||
echo "${{ secrets.AGE_KEY }}" > ~/.config/sops/age/keys.txt | ||
- name: Pre setup | ||
run: cp ansible/inventory.example.yml ansible/inventory.yml | ||
|
||
- name: Setup install | ||
run: | | ||
ansible-playbook ansible/playbooks/debian.yml \ | ||
-i ansible/inventory.yml \ | ||
-e _hosts="localhost" \ | ||
-e _connection="local" \ | ||
-e '{"is_remove": false}' \ | ||
-e "ansible_python_interpreter=$(which python3)" | ||
- name: Setup remove | ||
run: | | ||
ansible-playbook ansible/playbooks/debian.yml \ | ||
-i ansible/inventory.yml \ | ||
-e _hosts="localhost" \ | ||
-e _connection="local" \ | ||
-e '{"is_remove": true}' \ | ||
-e "ansible_python_interpreter=$(which python3)" |
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,16 @@ | ||
name: Ansible Lint | ||
on: | ||
pull_request: | ||
paths: ansible/** | ||
push: | ||
paths: ansible/** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
name: Ansible Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@main |
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,17 @@ | ||
name: gitleaks | ||
on: | ||
pull_request: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
scan: | ||
name: gitleaks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gitleaks/gitleaks-action@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -97,5 +97,6 @@ | |
] | ||
} | ||
} | ||
} | ||
}, | ||
"ansible.python.interpreterPath": "/home/user/.nix-profile/bin/python" | ||
} |
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
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
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
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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
msg: | ||
host: "{{ ansible_host }}" | ||
connection: "{{ ansible_connection }}" | ||
distribution: "{{ ansible_distribution }}" |
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
is_remove: false | ||
|
||
pkgs: | ||
- tmux | ||
- htop | ||
- age | ||
- curl | ||
|
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
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,25 @@ | ||
--- | ||
- name: Setup htop | ||
vars: | ||
is_remove: false | ||
|
||
pkgs: | ||
- htop | ||
block: | ||
- name: Setup htop > Setup Install | ||
when: not is_remove | ||
block: | ||
- name: Setup htop > Install packages | ||
become: true | ||
ansible.builtin.apt: | ||
name: "{{ pkgs }}" | ||
state: present | ||
|
||
- name: Setup htop > Setup Remove | ||
when: is_remove | ||
block: | ||
- name: Setup htop > Remove packages | ||
become: true | ||
ansible.builtin.apt: | ||
name: "{{ pkgs }}" | ||
state: absent |
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,25 @@ | ||
--- | ||
- name: Setup tmux | ||
vars: | ||
is_remove: false | ||
|
||
pkgs: | ||
- tmux | ||
block: | ||
- name: Setup tmux > Setup Install | ||
when: not is_remove | ||
block: | ||
- name: Setup tmux > Install packages | ||
become: true | ||
ansible.builtin.apt: | ||
name: "{{ pkgs }}" | ||
state: present | ||
|
||
- name: Setup tmux > Setup Remove | ||
when: is_remove | ||
block: | ||
- name: Setup tmux > Remove packages | ||
become: true | ||
ansible.builtin.apt: | ||
name: "{{ pkgs }}" | ||
state: absent |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
gnupg | ||
ssh-to-age | ||
sshpass | ||
libsecret | ||
|
||
# archive | ||
rar | ||
|