Skip to content

Commit f798047

Browse files
committed
Wrapped apps into ansible playbook
1 parent 365fb6e commit f798047

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

.github/main.workflow

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
workflow "On push" {
2+
on = "push"
3+
resolves = ["ansible/ansible-lint-action@master"]
4+
}
5+
6+
action "ansible/ansible-lint-action@master" {
7+
uses = "ansible/ansible-lint-action@master"
8+
env = {
9+
ACTION_PLAYBOOK_NAME = "ansible/install-apps.yml"
10+
}
11+
}
12+
13+
workflow "On PR" {
14+
on = "pull_request"
15+
resolves = ["ansible/ansible-lint-action@master"]
16+
}

install-apps.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
- name: Install OS-level apps
3+
hosts: all
4+
become: yes
5+
tasks:
6+
- name: Add Google Chrome key
7+
apt_key:
8+
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
9+
state: present
10+
- name: Add Google Chrome directory
11+
apt_repository:
12+
repo: "{{ item }}"
13+
state: present
14+
loop:
15+
- deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
16+
- deb http://dl.google.com/linux/chrome/deb/ stable main
17+
- name: Add Microsoft key
18+
apt_key:
19+
url: https://packages.microsoft.com/keys/microsoft.asc
20+
state: present
21+
- name: Add vscode directory
22+
apt_repository:
23+
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
24+
state: present
25+
- name: Install vscode depts
26+
apt:
27+
update_cache: yes
28+
name:
29+
- software-properties-common
30+
- apt-transport-https
31+
- name: Install apps
32+
apt:
33+
update_cache: yes
34+
name:
35+
- google-chrome-stable
36+
- git
37+
- code

inventory

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[dev-machines]
2+
3+
localhost ansible_connection=local

0 commit comments

Comments
 (0)