Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website playbook: use include #3

Merged
merged 5 commits into from
Aug 29, 2016

Conversation

sbesson
Copy link

@sbesson sbesson commented Aug 26, 2016

Implements the suggestion made in ome#106 (comment)

$ ansible-playbook -i inventory/openstack.py -e vm_key_name=seb-dundee -e vm_name=www-dev uod-web.yml -t jekyll_deploy

PLAY [OME Website Setup] *******************************************************

TASK [setup] *******************************************************************
ok: [9024a592-1b6c-446c-abe6-fbd6551dc693]

TASK [Create www-dev.openmicroscopy.org root directory] ************************
ok: [9024a592-1b6c-446c-abe6-fbd6551dc693]

TASK [Clone www-dev.openmicroscopy.org source code repository] *****************
ok: [9024a592-1b6c-446c-abe6-fbd6551dc693]

TASK [Build the website using Jekyll] ******************************************
changed: [9024a592-1b6c-446c-abe6-fbd6551dc693]

TASK [Update Nginx configuration for www-dev.openmicroscopy.org] ***************
ok: [9024a592-1b6c-446c-abe6-fbd6551dc693]

PLAY RECAP *********************************************************************
9024a592-1b6c-446c-abe6-fbd6551dc693 : ok=5    changed=1    unreachable=0    failed=0   

@joshmoore
Copy link
Owner

The files look good. I'm a bit confused about the "jekyll_deploy" tag. Is it (or "quickdeploy") still needed?

@sbesson
Copy link
Author

sbesson commented Aug 27, 2016

It is not necessary but allows to run the second playbook alone if we want to allow quick deployment. I literally followed the example in http://goodcode.io/articles/ansible-tips/ but happy to remove for now. Also I am working on another commit to move the included files under a subdirectory following the idrsystems-playbooks example. We can wait until this is complete or get this together if you prefer.

@sbesson
Copy link
Author

sbesson commented Aug 27, 2016

Last commit should also fix Travis (which is not included in this repo). I had to include the nginx role in the jekyll-deploy subplaybook to let the handler work.

With this the following is sufficient to only rebuild and redeploy the Jekyll-based website, so it might be we do not need the tags at all?

ansible-playbook -i inventory/openstack.py -e vm_name=www-dev -e vm_key_name=seb-dundee jekyll-playbooks/jekyll-deploy.yml

@joshmoore
Copy link
Owner

Nice. Merging. I'll test via my PR for demonstration tomorrow.

@joshmoore joshmoore merged commit bc61528 into joshmoore:uod-web-deploy Aug 29, 2016
@sbesson sbesson deleted the uod-web-deploy branch August 29, 2016 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants