ansible/tasks/cloud_setup_basic.yml
Seth Vidal e1639b4855 - add core config files for kojibuilders
- base tasks to make them use first_available for sensible defaults
2012-10-18 15:57:06 +00:00

36 lines
871 B
YAML

---
- name: put repos on system
action: copy src=$files/common/$item dest=/etc/yum.repos.d/$item
with_items:
- epel6.repo
- rhel6.repo
only_if: '$is_rhel'
tags:
- config
- 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