First playbook, yey
This commit is contained in:
9
hosts
Normal file
9
hosts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[all]
|
||||||
|
homecloud00
|
||||||
|
homecloud01
|
||||||
|
homecloud02
|
||||||
|
homecloud03
|
||||||
|
homecloud04
|
||||||
|
homecloud05
|
||||||
|
homecloud06
|
||||||
|
homecloud07
|
34
playbook.yml
Normal file
34
playbook.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Update and upgrade apt packages
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
upgrade: yes
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: 86400 #One day
|
||||||
|
|
||||||
|
- name: Install monitoring packages
|
||||||
|
apt:
|
||||||
|
pkg:
|
||||||
|
- htop
|
||||||
|
- iftop
|
||||||
|
- iotop
|
||||||
|
- glances
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Create sudo group
|
||||||
|
group:
|
||||||
|
name: sudo
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Create feedc0de user
|
||||||
|
user:
|
||||||
|
name: feedc0de
|
||||||
|
groups: sudo
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install glusterfs packages
|
||||||
|
apt:
|
||||||
|
pkg:
|
||||||
|
- glusterfs-server
|
||||||
|
state: present
|
Reference in New Issue
Block a user