-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutilities.yml
93 lines (84 loc) · 2.24 KB
/
utilities.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
88
89
90
91
92
93
---
# Install and configure miscellaneous packages
- name: Install rpmfusion repositories
dnf:
name: '{{ item }}'
state: latest
disable_gpg_check: yes
with_items:
- 'http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_version }}.noarch.rpm'
- 'http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_version }}.noarch.rpm'
when: ansible_distribution == "Fedora"
tags: rpmfusion
- name: Install and update packages
package: name={{ item }} state=latest
with_items:
- gnome-tweak-tool
- mpv
- nmap
- shotwell
- transmission-remote-gtk
- terminator
- tmux
- vim
- xclip
tags: install
- name: Create config directory for mpv
file:
path: /home/markieta/.config/mpv/
state: directory
owner: markieta
group: markieta
mode: 0700
tags: mpvdir
- name: Copy mpv config
copy:
src: files/home/markieta/.config/mpv/mpv.conf
dest: /home/markieta/.config/mpv/mpv.conf
owner: markieta
group: markieta
mode: 0664
tags: mpvconf
- name: Copy git config
copy:
src: files/home/markieta/.gitconfig
dest: "{{ item }}"
owner: root
group: markieta
mode: 0664
with_items:
- /root/.gitconfig
- /home/markieta/.gitconfig
tags: gitconfig
- name: Copy .bashrc
copy:
src: files/home/markieta/.bashrc
dest: /home/markieta/.bashrc
owner: markieta
group: markieta
mode: 0644
tags: bashrc
- name: Create config directory for terminator
file:
path: /home/markieta/.config/terminator/
state: directory
owner: markieta
group: markieta
mode: 0700
tags: terminatordir
- name: Copy terminator config
copy:
src: files/home/markieta/.config/terminator/config
dest: /home/markieta/.config/terminator/config
owner: markieta
group: markieta
mode: 0664
tags: terminatorconf
- name: Modify sudoers to enable passwordless sudo for user markieta
lineinfile:
dest: /etc/sudoers
line: 'markieta ALL=(ALL) NOPASSWD: ALL'
tags: passwordlesssudo
- name: Change origin url for this project from https to git to allow push
command: /usr/bin/git remote set-url origin [email protected]:Markieta/linux-post-install.git
tags: giturl