diff --git a/postgres.yml b/db.yml similarity index 100% rename from postgres.yml rename to db.yml diff --git a/playbooks/apt-upgrade-update.yml b/playbooks/apt-upgrade-update.yml new file mode 100644 index 0000000..e89d140 --- /dev/null +++ b/playbooks/apt-upgrade-update.yml @@ -0,0 +1,6 @@ +--- +- hosts: all + sudo: yes + tasks: + - shell: apt-get upgrade -y; apt-get update + diff --git a/roles/django/tasks/main.yml b/roles/django/tasks/main.yml index c2cdcc3..4601d13 100644 --- a/roles/django/tasks/main.yml +++ b/roles/django/tasks/main.yml @@ -11,12 +11,6 @@ command: chdir=/opt/Django-1.5.1 python setup.py install creates=/opt/Django-1.5.1/README.rst notify: service nginx start/enable -#- name: upgrade -# command: apt-get upgrade -y - -#- name: update -# command: apt-get update -y - - name: install deps apt: pkg=$item state=present with_items: @@ -50,5 +44,3 @@ file: path=/etc/nginx/sites-enabled/default state=absent notify: service nginx start/enable -- name: print out some versions - shell: python --version; python -c "import django; print django.VERSION" diff --git a/webserver.yml b/web.yml similarity index 100% rename from webserver.yml rename to web.yml