Add install tag to celery playbook and use it in Dockerfile
This commit is contained in:
parent
c9908652b5
commit
307b8e9d9c
@ -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"]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user