Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pc]
localhost ansible_connection=local
37 changes: 37 additions & 0 deletions install-apps.yml
Original file line number Diff line number Diff line change
@@ -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 deps
apt:
update_cache: yes
name:
- software-properties-common
- apt-transport-https
- name: Install apps
apt:
update_cache: yes
name:
- google-chrome-stable
- git
- code