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:
parent
ab02c36798
commit
211ed93017
3 changed files with 18 additions and 0 deletions
|
@ -21,6 +21,8 @@
|
||||||
- fas_client
|
- fas_client
|
||||||
- rkhunter
|
- rkhunter
|
||||||
- nagios_client
|
- nagios_client
|
||||||
|
- { role: ec2_proxy,
|
||||||
|
when: inventory_hostname in groups['ec2'] }
|
||||||
- collectd/base
|
- collectd/base
|
||||||
- sudo
|
- sudo
|
||||||
- rsyncd
|
- rsyncd
|
||||||
|
|
1
roles/ec2_proxy/README
Normal file
1
roles/ec2_proxy/README
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For things that only need to happen on ec2 proxies like mounting drives
|
15
roles/ec2_proxy/tasks/main.yml
Normal file
15
roles/ec2_proxy/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue