forked from kurron/scripts
/
desktop.yml
executable file
·87 lines (84 loc) · 2.14 KB
/
desktop.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
- hosts: localhost
roles:
- { role: kurron.hashicorp, tags: [ 'hashicorp' ] }
- { role: kurron.operations, operations_loggly_install: false, operations_datadog_install: false }
- role: kurron.atlassian
- role: kurron.software-developer
# - role: kurron.resilio-sync
# - role: kurron.virtualbox
- name: Install Desired Packages
hosts: localhost
become: yes
tasks:
- dnf:
name: "http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-25.noarch.rpm"
state: present
when: ansible_distribution == 'Fedora'
- dnf:
name: "{{item}}"
state: present
when: ansible_distribution == 'Fedora'
with_items:
- "tree"
- "gnome-tweak-tool"
- "vlc"
- "gimp"
- "simple-scan"
- "youtube-dl"
- "unzip"
- "thunderbird"
- "qbittorrent"
- "pidgin"
- "gnome-music"
- "filezilla"
- "grsync"
- "nfs-utils"
- name: Install Desired Packages
hosts: localhost
become: yes
tasks:
- apt:
name: "{{item}}"
state: present
when: ansible_distribution == 'Ubuntu'
with_items:
- "tree"
- "gnome-tweak-tool"
- "vlc"
- "gimp"
- "simple-scan"
- "youtube-dl"
- "unzip"
- "thunderbird"
- "qbittorrent"
- "pidgin"
- "gnome-music"
- "filezilla"
- "grsync"
- "nfs-common"
- name: Mount NAS
hosts: localhost
become: yes
tasks:
- lineinfile:
dest: /etc/hosts
line: "{{ item }}"
with_items:
- '192.168.1.227 stargate'
- '192.168.1.229 atlantis'
- '192.168.1.233 bifrost'
- '192.168.1.234 nas'
- '192.168.1.235 alfheim'
- '192.168.1.236 midgard'
- '192.168.1.240 vanaheim'
- '192.168.1.250 asgard'
- file:
path: "/mnt/nas"
state: directory
- mount:
name: "/mnt/nas"
src: "nas:/media"
fstype: nfs
opts: ro
state: mounted