move cloud_setup_el6 to cloud_setup_basic and only_if's

This commit is contained in:
Seth Vidal 2012-10-08 22:10:44 +00:00
parent 528a12abb9
commit a865898c49
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1,35 @@
---
- name: put repos on system
action: copy src=$files/common/$item dest=/etc/yum.repos.d/$item
with_items:
- epel6.repo
- rhel6.repo
tags:
- config
only_if: '$is_rhel'
- name: update all
action: command yum -y update
tags:
- packages
- name: ntpdate install
action: yum state=installed pkg=ntpdate
tags:
- packages
- name: sync time - just once
action: command /usr/sbin/ntpdate -s -b 66.187.233.4
- name: edit hostname to be instance name
action: shell hostname `curl -s http://169.254.169.254/latest/meta-data/instance-id`
tags:
- config
- name: put sysadmin-main in place for sshing in
action: copy src=$files/common/sysadmin-main dest=/root/.ssh/authorized_keys mode=600 backup=true
tags:
- config
- name: put /dev/vda2 up as /mnt
action: mount name=/mnt src=/dev/vda2 fstype=ext3 passno=1 dump=1 state=mounted