From 8d8c7c204dff77620281bed480b2fe63235e80b1 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Oct 2021 08:27:38 +0200 Subject: [PATCH] feat: updated to use kewlfft.aur from collection instead of local install --- README.md | 38 ++++++++++++++++++++++++-------- requirements.yaml | 2 -- roles/git-flow/meta/main.yaml | 2 -- roles/git-flow/tasks/main.yaml | 6 ++--- roles/slack/meta/main.yaml | 2 -- roles/slack/tasks/main.yaml | 6 ++--- roles/teamviewer/meta/main.yaml | 2 -- roles/teamviewer/tasks/main.yaml | 2 +- roles/xorg/meta/main.yaml | 2 -- roles/xorg/tasks/main.yaml | 2 +- roles/zoom/meta/main.yaml | 2 -- roles/zoom/tasks/main.yaml | 6 ++--- 12 files changed, 40 insertions(+), 32 deletions(-) delete mode 100644 requirements.yaml delete mode 100644 roles/git-flow/meta/main.yaml delete mode 100644 roles/slack/meta/main.yaml delete mode 100644 roles/teamviewer/meta/main.yaml delete mode 100644 roles/xorg/meta/main.yaml delete mode 100644 roles/zoom/meta/main.yaml diff --git a/README.md b/README.md index 362f24c..98b1a97 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,39 @@ ## Invocation - export GITHUB_ACCESS_TOKEN=xxxxxxxxx - ansible-playbook --inventory inventory.yaml wsl-debian.yaml +```bash +export GITHUB_ACCESS_TOKEN=xxxxxxxxx +ansible-playbook --inventory inventory.yaml wsl-debian.yaml +``` + +## Arch Linux + +Install aur collection: + +```bash +ansible-galaxy collection install kewlfft.aur +``` + +Run + +````bash +ansible-playbook --ask-become-pass --inventory inventory.yaml arch.yaml +``` ## WSL Debian setup cmd.exe: - wsl.exe --unregister Debian - Debian.exe install --root +```bat +wsl.exe --unregister Debian +Debian.exe install --root +```` root@debian: - apt-get update - apt-get -y install openssh-server python3 - service ssh start - ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q - echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmgEJRfpPRxQvzuCuEuDwarjzXaebBgbDsSNDZwm6EfJ2Arq15oYkGCB4oK45e2rfT8kaumpZ+7NteCRCJsrc3Cv/ivMkIekSLNuGAKe1bwM+QLraz2RLuCvH42AY+i7Tcg3LYihJgBw77/lseXstZ5RqkpxDCK2sSd/1qE1vYLTtXnAPwibQP/MWE7WPbHqjcBWSSe+XKl2b6sGiTA3H3KABIgHB6FSCbLmhqVMaDzwufkWhs/oeQnc6Kt7C8GA4x1DhAJmmZ237r4h/pu02KHpyL2OI2Z1sziBWNob/+WD0v/3jyzxaWcDWsOkEE1BE73osRbFU0W3sBnrGY8f7D mandl@DESKTOP-IH85M40" >> ~/.ssh/authorized_keys +```bash +apt-get update +apt-get -y install openssh-server python3 +service ssh start +ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q +echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmgEJRfpPRxQvzuCuEuDwarjzXaebBgbDsSNDZwm6EfJ2Arq15oYkGCB4oK45e2rfT8kaumpZ+7NteCRCJsrc3Cv/ivMkIekSLNuGAKe1bwM+QLraz2RLuCvH42AY+i7Tcg3LYihJgBw77/lseXstZ5RqkpxDCK2sSd/1qE1vYLTtXnAPwibQP/MWE7WPbHqjcBWSSe+XKl2b6sGiTA3H3KABIgHB6FSCbLmhqVMaDzwufkWhs/oeQnc6Kt7C8GA4x1DhAJmmZ237r4h/pu02KHpyL2OI2Z1sziBWNob/+WD0v/3jyzxaWcDWsOkEE1BE73osRbFU0W3sBnrGY8f7D mandl@DESKTOP-IH85M40" >> ~/.ssh/authorized_keys +``` diff --git a/requirements.yaml b/requirements.yaml deleted file mode 100644 index f46775a..0000000 --- a/requirements.yaml +++ /dev/null @@ -1,2 +0,0 @@ -# Install Ansible AUR helper -- src: kewlfft.aur diff --git a/roles/git-flow/meta/main.yaml b/roles/git-flow/meta/main.yaml deleted file mode 100644 index 36ba984..0000000 --- a/roles/git-flow/meta/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - kewlfft.aur diff --git a/roles/git-flow/tasks/main.yaml b/roles/git-flow/tasks/main.yaml index 75ee3cb..a58c8c7 100644 --- a/roles/git-flow/tasks/main.yaml +++ b/roles/git-flow/tasks/main.yaml @@ -1,7 +1,7 @@ --- - name: install package - aur: - name: gitflow-avh - state: latest + kewlfft.aur.aur: + name: gitflow-avh + state: latest become: yes become_user: "{{ aur_builder.name }}" diff --git a/roles/slack/meta/main.yaml b/roles/slack/meta/main.yaml deleted file mode 100644 index 36ba984..0000000 --- a/roles/slack/meta/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - kewlfft.aur diff --git a/roles/slack/tasks/main.yaml b/roles/slack/tasks/main.yaml index 7f680b2..aa08b91 100644 --- a/roles/slack/tasks/main.yaml +++ b/roles/slack/tasks/main.yaml @@ -1,7 +1,7 @@ --- - name: install package - aur: - name: slack-desktop - state: latest + kewlfft.aur.aur: + name: slack-desktop + state: latest become: yes become_user: "{{ aur_builder.name }}" diff --git a/roles/teamviewer/meta/main.yaml b/roles/teamviewer/meta/main.yaml deleted file mode 100644 index 36ba984..0000000 --- a/roles/teamviewer/meta/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - kewlfft.aur diff --git a/roles/teamviewer/tasks/main.yaml b/roles/teamviewer/tasks/main.yaml index aa9ca48..9bd8605 100644 --- a/roles/teamviewer/tasks/main.yaml +++ b/roles/teamviewer/tasks/main.yaml @@ -1,6 +1,6 @@ --- - name: install package - aur: + kewlfft.aur.aur: name: teamviewer state: latest become: yes diff --git a/roles/xorg/meta/main.yaml b/roles/xorg/meta/main.yaml deleted file mode 100644 index 36ba984..0000000 --- a/roles/xorg/meta/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - kewlfft.aur diff --git a/roles/xorg/tasks/main.yaml b/roles/xorg/tasks/main.yaml index ebdefae..052f416 100644 --- a/roles/xorg/tasks/main.yaml +++ b/roles/xorg/tasks/main.yaml @@ -20,7 +20,7 @@ - unclutter - name: install AUR packages - aur: + kewlfft.aur.aur: name: "{{ item }}" state: latest become: yes diff --git a/roles/zoom/meta/main.yaml b/roles/zoom/meta/main.yaml deleted file mode 100644 index 36ba984..0000000 --- a/roles/zoom/meta/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - kewlfft.aur diff --git a/roles/zoom/tasks/main.yaml b/roles/zoom/tasks/main.yaml index 04dcefb..9630cc0 100644 --- a/roles/zoom/tasks/main.yaml +++ b/roles/zoom/tasks/main.yaml @@ -1,7 +1,7 @@ --- - name: install package - aur: - name: zoom - state: latest + kewlfft.aur.aur: + name: zoom + state: latest become: yes become_user: "{{ aur_builder.name }}"