-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.yml
41 lines (35 loc) · 1.03 KB
/
core.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
- hosts: all
vars:
apt_file: /etc/apt/sources.list.d/google-chrome.list
packages:
- i3
- ufw
- emacs
tasks:
- name: Install core/base apps and utils
become: True
become_user: root
package:
name: "{{ packages }}"
state: present
- name: Install google-chrome
become: True
command: test -f {{apt_file}}
register: google_apt_exists
ignore_errors: True
- name: Add google chrome key
become: True
shell: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
when: google_apt_exists.rc == 1
- name: Add Google Chrome repo
become: True
copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
when: google_apt_exists.rc == 1
- name: Update apt cache
become: True
apt: update_cache=yes
when: google_apt_exists.rc == 1
- name: Install Google Chrome
become: True
apt: pkg=google-chrome-stable
state: present