diff --git a/playbooks/allsearch_banner.yml b/playbooks/allsearch_banner.yml new file mode 100644 index 0000000000..ba0ee8d7b9 --- /dev/null +++ b/playbooks/allsearch_banner.yml @@ -0,0 +1,44 @@ +--- +# by default this playbook runs in the staging environment +# to run in production, pass '-e runtime_env=production' +- name: change the Allsearch banner + # hosts: allsearch_api_{{ runtime_env | default('staging') }} + hosts: localhost + remote_user: deploy + vars: + - passenger_root: "/opt/allsearch_api/current" + - text_no_comma: "dog cat" + # - text_escaped_comma: "dog\, cat" + - text_unescaped_comma: "dog, cat" + vars_files: + - ../group_vars/allsearch_api/vault.yml + - ../group_vars/allsearch_api/common.yml + - ../group_vars/allsearch_api/{{ runtime_env | default('staging') }}.yml + + tasks: + - name: Check the text for commas + ansible.builtin.set_fact: + first_fact: "{{ text_unescaped_comma | regex_replace('?