ec2_proxy: create role and try to do partition stuff automatically in the future

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2020-01-31 20:25:39 +00:00 committed by Pierre-Yves Chibon
parent ab02c36798
commit 211ed93017
3 changed files with 18 additions and 0 deletions

View file

@ -21,6 +21,8 @@
- fas_client
- rkhunter
- nagios_client
- { role: ec2_proxy,
when: inventory_hostname in groups['ec2'] }
- collectd/base
- sudo
- rsyncd

1
roles/ec2_proxy/README Normal file
View file

@ -0,0 +1 @@
For things that only need to happen on ec2 proxies like mounting drives

View file

@ -0,0 +1,15 @@
---
- name: Create partition for /srv
parted: device=/dev/nvme1n1 number=1 state=present
tags:
- ec2_proxy
- name: Make it ext3
filesystem: fstype=ext3 dev=/dev/nvme1n1p1
tags:
- ec2_proxy
- name: mount /srv
mount: name=/srv src=/dev/nvme1n1p1 fstype=ext3 state=mounted
tags:
- ec2_proxy