Created
December 12, 2013 05:20
-
-
Save xuxiaodong/7923544 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Tasks to install required packages for awx | |
#- name: install ubuntu awx apt repository | |
# template: src=awx_repo.j2 dest=/etc/apt/sources.list.d/awx_repo.list | |
- name: install python-pip package for ubuntu 12.04 | |
apt: name=python-pip | |
when: ansible_lsb.codename == "precise" | |
- name: install django 1.5.4 via pip for ubuntu 12.04 | |
pip: name=django version=1.5.4 | |
when: ansible_lsb.codename == "precise" | |
- name: install django via apt for ubuntu 12.10 or later | |
apt: name=python-django | |
when: ansible_lsb.codename != "precise" | |
- name: install required packages via apt | |
apt: name={{ item }} | |
with_items: | |
- apache2 | |
- libapache2-mod-wsgi | |
- postgresql | |
- python-psycopg2 | |
- python-setuptools | |
- python-ldap | |
- supervisor | |
- git | |
- subversion | |
- mercurial | |
#- name: install awx package via apt | |
# apt: name={{ awx_package_name }} update_cache=yes force=yes state=latest | |
- name: get awx package | |
get_url: url=http://ansibleworks.com/releases/awx/deb/pool/non-free/a/awx/awx_1.4.0-0_all.deb dest=/tmp | |
- name: install awx package | |
command: dpkg -i awx_1.4.0-0_all.deb chdir=/tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment