
patch2: make ansible code follow lint. patch2: some of the 'shell' command will be replaced with ansible built-in 'script' in a separate CL. Change-Id: I010fbf89d7393c2ba1bee06dca36196fe5cc7006
36 lines
725 B
YAML
36 lines
725 B
YAML
---
|
|
- name: install ubuntu-cloud-keyring(ubuntu)
|
|
apt: name={{ item }} state=latest
|
|
with_items:
|
|
- ubuntu-cloud-keyring
|
|
|
|
- name: add juno cloudarchive
|
|
apt_repository: repo={{ juno_cloud_archive }} state=present
|
|
|
|
- name: update packages once
|
|
apt: update_cache=yes
|
|
|
|
- name: update hosts files to all hosts
|
|
template: src=hosts
|
|
dest=/etc/hosts
|
|
backup=yes
|
|
|
|
- name: install common packages
|
|
apt: name={{ item }} state=latest
|
|
with_items:
|
|
- python-pip
|
|
- python-dev
|
|
- python-mysqldb
|
|
- ntp
|
|
|
|
- name: update ntp conf
|
|
template: src=ntp.conf dest=/etc/ntp.conf backup=yes
|
|
notify:
|
|
- restart ntp
|
|
|
|
- name: update pip
|
|
pip: name={{ item }} state=latest
|
|
with_items:
|
|
- pip
|
|
|