Clean up hosts, roles
This commit is contained in:
parent
5690a2a2ba
commit
88cd48e3e2
8 changed files with 25 additions and 150 deletions
|
@ -16,3 +16,5 @@
|
|||
- ncdu
|
||||
- nnn
|
||||
- neovim
|
||||
- aria2
|
||||
- lynx
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
- name: Ensure media group exists
|
||||
become: true
|
||||
tags:
|
||||
- media_group
|
||||
ansible.builtin.group:
|
||||
name: media
|
||||
state: present
|
||||
gid: 1800
|
||||
|
||||
- name: Install nfs-common
|
||||
become: true
|
||||
apt:
|
||||
pkg:
|
||||
- nfs-common
|
||||
|
||||
- name: Mount /media/tv
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: 10.0.1.101:/export/tv
|
||||
path: /media/tv
|
||||
opts: default
|
||||
state: mounted
|
||||
fstype: nfs
|
||||
|
||||
- name: Mount /media/film
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: 10.0.1.101:/export/film
|
||||
path: /media/film
|
||||
opts: default
|
||||
state: mounted
|
||||
fstype: nfs
|
||||
|
||||
- name: Mount /media/misc
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: 10.0.1.101:/export/misc
|
||||
path: /media/misc
|
||||
opts: default
|
||||
state: mounted
|
||||
fstype: nfs
|
|
@ -1,32 +0,0 @@
|
|||
- name: Ensure media group exists
|
||||
become: true
|
||||
tags:
|
||||
- media_group
|
||||
ansible.builtin.group:
|
||||
name: media
|
||||
state: present
|
||||
gid: 1800
|
||||
|
||||
- name: Mount /export/tv
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: UUID=fcee0188-8ca1-4fda-81b7-f5920c79ab48
|
||||
path: /export/tv
|
||||
state: mounted
|
||||
fstype: ext4
|
||||
|
||||
- name: Mount /export/film
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: UUID=5d9dd538-79e4-4168-be91-e0b040155cb3
|
||||
path: /export/film
|
||||
state: mounted
|
||||
fstype: ext4
|
||||
|
||||
- name: Mount /export/misc
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: UUID=5a43b7dc-3e28-459e-824a-ad45b5475361
|
||||
path: /export/misc
|
||||
state: mounted
|
||||
fstype: ext4
|
|
@ -1,4 +0,0 @@
|
|||
- name: Restart SSHD
|
||||
service:
|
||||
name: sshd
|
||||
state: restarted
|
|
@ -23,4 +23,3 @@
|
|||
regexp: "^PermitRootLogin"
|
||||
line: "PermitRootLogin no"
|
||||
backup: yes
|
||||
notify: Restart SSHD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue