ce595f51b22a30af55bf4ae5deae6fb11c728ef2
[genesis.git] / compass / deploy / ansible / roles / common / tasks / main.yml
1 ---
2 - name: install ubuntu-cloud-keyring(ubuntu)
3   apt: name={{ item }} state=latest
4   with_items:
5     - ubuntu-cloud-keyring
6
7 - name: update hosts files to all hosts
8   template: src=hosts
9             dest=/etc/hosts
10             backup=yes
11
12 - name: install common packages
13   apt: name={{ item }} state=latest
14   with_items:
15     - python-pip
16     - python-dev
17     - python-mysqldb
18     - ntp
19
20 - name: restart ntp
21   command: su -s /bin/sh -c "service ntp stop; ntpd -gq; hwclock --systohc"
22   ignore_errors: True
23
24 - name: update ntp conf
25   template: src=ntp.conf dest=/etc/ntp.conf backup=yes
26
27 - name: restart ntp
28   service: name=ntp state=restarted enabled=yes