)]}'
{"zuul.d/playbooks/run-with-ansible-version.yml":[{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"525ac6683d1ac05c6a1614b5070c03a92c1bf41a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5f93b717_7573cc16","updated":"2018-01-25 14:34:10.000000000","message":"So this is very similar to the run.yml playbook except for the ANSIBLE_PACKAGE variable. Why can\u0027t we merge both and use the ansible_package variable to control the execution?","commit_id":"987bd1a1354d12b426ff89300476af8fb2de7a0c"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8c12b5c452ff184bc9c486791991cd40ab3ccbf2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5f93b717_ed614c3b","in_reply_to":"5f93b717_7573cc16","updated":"2018-01-25 17:34:10.000000000","message":"I can probably have two task instead of two playbooks, that\u0027s fine for me.\n\nIs that what you meant?","commit_id":"987bd1a1354d12b426ff89300476af8fb2de7a0c"},{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"6b28996222f0b2f7d8d8035377aaaac8a18a6996","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5f93b717_8dae882c","in_reply_to":"5f93b717_ed614c3b","updated":"2018-01-25 17:39:40.000000000","message":"Yeah 2 tasks is fine but you can further simplify it by using the ANSIBLE_PACKAGE env variable in our current run.yml playbook right and use something like\n\nANSIBLE_PACKAGE: {{ ansible_package | default(omit) }}\n\nAnd in case of regular jobs, you are in the \u0027omit\u0027 case and the 2.4.X version is used which is defined as a bash variable later on. Wouldn\u0027t that work?\n\nDoes it make sense?","commit_id":"987bd1a1354d12b426ff89300476af8fb2de7a0c"}],"zuul.d/playbooks/run.yml":[{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"94a5c74481db22c99f2b0743de19ab1f76f308ff","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        # ZUUL_PROJECT is used by tests/get-ansible-role-requirements to"},{"line_number":36,"context_line":"        # determine when CI provided repos should be used."},{"line_number":37,"context_line":"        ZUUL_PROJECT: \"{{ zuul.project.short_name }}\""},{"line_number":38,"context_line":"        ANSIBLE_PACKAGE: \"{{ ansible_package }}\""},{"line_number":39,"context_line":"      when:"},{"line_number":40,"context_line":"        - \"ansible_package is defined\""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5f93b717_0f5011d4","line":38,"range":{"start_line":38,"start_character":8,"end_line":38,"end_character":48},"updated":"2018-01-26 15:35:00.000000000","message":"So I think the two tasks can be merged and use something like\n\nANSIBLE_PACKAGE: \"{{ ansible_package | default(\u0027\u0027) }}\"\n\nand then we change\n\nhttps://github.com/openstack/openstack-ansible/blob/master/scripts/bootstrap-ansible.sh#L25\n\nfrom \u0027:-\u0027 to \u0027-\u0027 because according to http://www.tldp.org/LDP/abs/html/parameter-substitution.html\n\n\"${parameter-default} and ${parameter:-default} are almost equivalent. The extra : makes a difference only when parameter has been declared, but is null.\"\n\nwhat do you think?","commit_id":"2fa030c3e66895b00940c7b42162c774f1d80dab"}],"zuul.d/project.yaml":[{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"525ac6683d1ac05c6a1614b5070c03a92c1bf41a","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    experimental:"},{"line_number":29,"context_line":"      jobs:"},{"line_number":30,"context_line":"        - openstack-ansible-deploy-octavia-ubuntu-xenial"},{"line_number":31,"context_line":"        - openstack-ansible-deploy_with_ansible_version-aio-ubuntu-xenial"},{"line_number":32,"context_line":"    gate:"},{"line_number":33,"context_line":"      jobs:"},{"line_number":34,"context_line":"        - openstack-ansible-linters"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"5f93b717_1562883f","line":31,"range":{"start_line":31,"start_character":34,"end_line":31,"end_character":55},"updated":"2018-01-25 14:34:10.000000000","message":"this is a very weird name :) shouldn\u0027t it be \u0027ansible-devel\u0027 or something to denote what this job is really about?","commit_id":"987bd1a1354d12b426ff89300476af8fb2de7a0c"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8c12b5c452ff184bc9c486791991cd40ab3ccbf2","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    experimental:"},{"line_number":29,"context_line":"      jobs:"},{"line_number":30,"context_line":"        - openstack-ansible-deploy-octavia-ubuntu-xenial"},{"line_number":31,"context_line":"        - openstack-ansible-deploy_with_ansible_version-aio-ubuntu-xenial"},{"line_number":32,"context_line":"    gate:"},{"line_number":33,"context_line":"      jobs:"},{"line_number":34,"context_line":"        - openstack-ansible-linters"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"5f93b717_ad8264c7","line":31,"range":{"start_line":31,"start_character":34,"end_line":31,"end_character":55},"in_reply_to":"5f93b717_1562883f","updated":"2018-01-25 17:34:10.000000000","message":"yeah I had that before. But I expect people to just override this var for testing a new version temporarily in gates.\n\nI was on the fence with a name like with_different_ansible_version, and with_ansible_devel.\n\nI guess that if we do with_ansible_devel, we can keep it that way, and we can use this job to inherit new jobs if we want longer term things, like when ansible 2.5 and ansible devel will be pointing to different branches.","commit_id":"987bd1a1354d12b426ff89300476af8fb2de7a0c"}]}
