From 365fb6eb82ae87bc889e688c734b4f3ad5af254d Mon Sep 17 00:00:00 2001 From: sawa Date: Sun, 10 Mar 2019 13:11:28 +0200 Subject: [PATCH 1/4] Script for kitty update. --- install-apps.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 install-apps.sh diff --git a/install-apps.sh b/install-apps.sh new file mode 100755 index 0000000..c3b9b99 --- /dev/null +++ b/install-apps.sh @@ -0,0 +1,6 @@ +#!/bin/bash +curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin +echo 'Update complete.' + + + From f798047aa22e9d1fbf85274ecea27ab333e6af77 Mon Sep 17 00:00:00 2001 From: RootenberG Date: Mon, 11 Mar 2019 19:45:09 +0200 Subject: [PATCH 2/4] Wrapped apps into ansible playbook --- .github/main.workflow | 16 ++++++++++++++++ install-apps.yml | 37 +++++++++++++++++++++++++++++++++++++ inventory | 3 +++ 3 files changed, 56 insertions(+) create mode 100644 .github/main.workflow create mode 100644 install-apps.yml create mode 100644 inventory diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..731e72f --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,16 @@ +workflow "On push" { + on = "push" + resolves = ["ansible/ansible-lint-action@master"] +} + +action "ansible/ansible-lint-action@master" { + uses = "ansible/ansible-lint-action@master" + env = { + ACTION_PLAYBOOK_NAME = "ansible/install-apps.yml" + } +} + +workflow "On PR" { + on = "pull_request" + resolves = ["ansible/ansible-lint-action@master"] +} diff --git a/install-apps.yml b/install-apps.yml new file mode 100644 index 0000000..00c8803 --- /dev/null +++ b/install-apps.yml @@ -0,0 +1,37 @@ +--- +- name: Install OS-level apps + hosts: all + become: yes + tasks: + - name: Add Google Chrome key + apt_key: + url: https://dl-ssl.google.com/linux/linux_signing_key.pub + state: present + - name: Add Google Chrome directory + apt_repository: + repo: "{{ item }}" + state: present + loop: + - deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main + - deb http://dl.google.com/linux/chrome/deb/ stable main + - name: Add Microsoft key + apt_key: + url: https://packages.microsoft.com/keys/microsoft.asc + state: present + - name: Add vscode directory + apt_repository: + repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" + state: present + - name: Install vscode depts + apt: + update_cache: yes + name: + - software-properties-common + - apt-transport-https + - name: Install apps + apt: + update_cache: yes + name: + - google-chrome-stable + - git + - code \ No newline at end of file diff --git a/inventory b/inventory new file mode 100644 index 0000000..ec25b8e --- /dev/null +++ b/inventory @@ -0,0 +1,3 @@ +[dev-machines] + +localhost ansible_connection=local \ No newline at end of file From dad5b147c3d215af633400cdd65296cc9fdc2602 Mon Sep 17 00:00:00 2001 From: l1storez Date: Fri, 5 Aug 2022 21:40:10 +0300 Subject: [PATCH 3/4] fix vscode name --- install-apps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-apps.yml b/install-apps.yml index 00c8803..4c63df1 100644 --- a/install-apps.yml +++ b/install-apps.yml @@ -22,7 +22,7 @@ apt_repository: repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" state: present - - name: Install vscode depts + - name: Install vscode deps apt: update_cache: yes name: @@ -34,4 +34,4 @@ name: - google-chrome-stable - git - - code \ No newline at end of file + - code From c9b584dd1baf10891db90bb6810ec5e7ef51eb21 Mon Sep 17 00:00:00 2001 From: l1storez Date: Fri, 5 Aug 2022 21:59:37 +0300 Subject: [PATCH 4/4] add hosts --- hosts | 2 ++ inventory | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 hosts delete mode 100644 inventory diff --git a/hosts b/hosts new file mode 100644 index 0000000..773c08b --- /dev/null +++ b/hosts @@ -0,0 +1,2 @@ +[pc] +localhost ansible_connection=local diff --git a/inventory b/inventory deleted file mode 100644 index ec25b8e..0000000 --- a/inventory +++ /dev/null @@ -1,3 +0,0 @@ -[dev-machines] - -localhost ansible_connection=local \ No newline at end of file