Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

Commit c65a7b5

Browse files
committed
Replace hub with github-cli
1 parent eeba56a commit c65a7b5

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

roles/dev/tasks/asdf.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,23 @@
99
- set_default_java.rc != 0
1010
- '"is already installed" not in set_default_java.stdout'
1111
changed_when: set_default_java.rc == 0
12+
13+
- name: Add asdf plugins
14+
shell: bash -ilc "asdf plugin add {{ item }}"
15+
register: add_asdf_plugins
16+
failed_when: add_asdf_plugins.rc == 1
17+
changed_when: add_asdf_plugins.rc == 0
18+
loop:
19+
- github-cli
20+
21+
- name: Install asdf applications
22+
shell: |
23+
bash -ilc " \
24+
asdf latest {{ item }} | xargs -i bash -ilc 'asdf install {{ item }} {} && asdf global {{ item }} {}'"
25+
register: install_asdf_apps
26+
failed_when:
27+
- install_asdf_apps.rc != 0
28+
- '"is already installed" not in install_asdf_apps.stdout'
29+
changed_when: install_asdf_apps.rc == 0
30+
loop:
31+
- github-cli

roles/dev/tasks/snap.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@
55
classic: yes
66
loop:
77
- code
8-
- hub
98

109
- name: Install non-classic snaps
1110
snap:
12-
name:
11+
name: "{{ item }}"
12+
classic: yes
13+
loop:
1314
- insomnia
1415

15-
- name: Create git alias for hub
16-
lineinfile:
17-
path: ~/.bashrc
18-
line: "alias git='hub'"
19-
become: no
20-
2116
- import_tasks: visual_studio_code.yml
2217
become: no

roles/work/vars/main.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
11
aws_nuke:
22
version: 2.14.0
3-
4-
payara:
5-
version: 5.2020.6
6-
7-
saml2aws:
8-
version: 2.27.0
9-
10-
terraform11:
11-
version: 0.11.14
12-
13-
terraform12:
14-
version: 0.12.26
15-
16-
terraform13:
17-
version: 0.13.5

0 commit comments

Comments
 (0)