Commit b876461c by John Eskew Committed by Feanil Patel

Fixes to previous syntax fixes - regex and quoting.

parent 07a01f93
...@@ -14,6 +14,6 @@ ...@@ -14,6 +14,6 @@
- name: Update /etc/hosts - name: Update /etc/hosts
lineinfile: lineinfile:
dest: /etc/hosts 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" line: "127.0.1.1{{ '\t' }}{{ hostname_fqdn.split('.')[0] }}{{ '\t' }}{{ hostname_fqdn }}{{ '\t' }}localhost"
state: present state: present
...@@ -163,11 +163,11 @@ ...@@ -163,11 +163,11 @@
- name: restart the application - name: restart the application
supervisorctl: supervisorctl:
state: restarted state: restarted
supervisorctl_path: "{{ supervisor_ctl }}" supervisorctl_path: "{{ '{{' }} supervisor_ctl }}"
config: "{{ supervisor_cfg }}" config: "{{ '{{' }} supervisor_cfg }}"
name: "{{ '{{' }} {{ role_name }}_service_name }}" name: "{{ '{{' }} {{ role_name }}_service_name }}"
when: not disable_edx_services when: not disable_edx_services
sudo_user: "{{ supervisor_service_user }}" sudo_user: "{{ '{{' }} supervisor_service_user }}"
tags: tags:
- manage - manage
- manage:start - manage:start
...@@ -175,9 +175,9 @@ ...@@ -175,9 +175,9 @@
- name: Copying nginx configs for {{ role_name }} - name: Copying nginx configs for {{ role_name }}
template: template:
src: "edx/app/nginx/sites-available/{{ role_name }}.j2" 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 owner: root
group: "{{ common_web_user }}" group: "{{ '{{' }} common_web_user }}"
mode: 0640 mode: 0640
notify: reload nginx notify: reload nginx
tags: tags:
...@@ -186,8 +186,8 @@ ...@@ -186,8 +186,8 @@
- name: Creating nginx config links for {{ role_name }} - name: Creating nginx config links for {{ role_name }}
file: file:
src: "{{ nginx_sites_available_dir }}/{{ role_name }}" src: "{{ '{{' }} nginx_sites_available_dir }}/{{ role_name }}"
dest: "{{ nginx_sites_enabled_dir }}/{{ role_name }}" dest: "{{ '{{' }} nginx_sites_enabled_dir }}/{{ role_name }}"
state: link state: link
owner: root owner: root
group: 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