Add install tag to celery playbook and use it in Dockerfile

This commit is contained in:
Dmitry Shulyak 2015-11-27 13:23:11 +02:00
parent c9908652b5
commit 307b8e9d9c
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,6 @@ RUN apt-get install -y libffi-dev libssl-dev
RUN pip install https://github.com/Mirantis/solar/archive/master.zip
RUN pip install https://github.com/Mirantis/solar-agent/archive/master.zip
RUN ansible-playbook -v -i "localhost," -c local /celery.yaml --skip-tags slave
RUN ansible-playbook -v -i "localhost," -c local /celery.yaml --tags install
CMD ["/run.sh"]

View File

@ -7,7 +7,9 @@
celery_dir: /var/run/celery
tasks:
- shell: mkdir -p {{ celery_dir }}
tags: [install]
- shell: pip install celery
tags: [install]
- shell: hostname
register: hostname
- shell: celery multi stopwait 2 -A solar.orchestration.runner