Commit b876461c by John Eskew Committed by Feanil Patel

Fixes to previous syntax fixes - regex and quoting.

parent 07a01f93
......@@ -14,6 +14,6 @@
- name: Update /etc/hosts
lineinfile:
dest: /etc/hosts
regexp: "^127.0.1.1"
regexp: "^127\.0\.1\.1"
line: "127.0.1.1{{ '\t' }}{{ hostname_fqdn.split('.')[0] }}{{ '\t' }}{{ hostname_fqdn }}{{ '\t' }}localhost"
state: present
......@@ -163,11 +163,11 @@
- name: restart the application
supervisorctl:
state: restarted
supervisorctl_path: "{{ supervisor_ctl }}"
config: "{{ supervisor_cfg }}"
supervisorctl_path: "{{ '{{' }} supervisor_ctl }}"
config: "{{ '{{' }} supervisor_cfg }}"
name: "{{ '{{' }} {{ role_name }}_service_name }}"
when: not disable_edx_services
sudo_user: "{{ supervisor_service_user }}"
sudo_user: "{{ '{{' }} supervisor_service_user }}"
tags:
- manage
- manage:start
......@@ -175,9 +175,9 @@
- name: Copying nginx configs for {{ role_name }}
template:
src: "edx/app/nginx/sites-available/{{ role_name }}.j2"
dest: "{{ nginx_sites_available_dir }}/{{ role_name }}"
dest: "{{ '{{' }} nginx_sites_available_dir }}/{{ role_name }}"
owner: root
group: "{{ common_web_user }}"
group: "{{ '{{' }} common_web_user }}"
mode: 0640
notify: reload nginx
tags:
......@@ -186,8 +186,8 @@
- name: Creating nginx config links for {{ role_name }}
file:
src: "{{ nginx_sites_available_dir }}/{{ role_name }}"
dest: "{{ nginx_sites_enabled_dir }}/{{ role_name }}"
src: "{{ '{{' }} nginx_sites_available_dir }}/{{ role_name }}"
dest: "{{ '{{' }} nginx_sites_enabled_dir }}/{{ role_name }}"
state: link
owner: root
group: root
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment