Commit 5a981d8c by Feanil Patel

More things found in testing.

parent 41976703
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
- install:app-requirements - install:app-requirements
- name: migrate - name: migrate
shell: shell: "DB_MIGRATION_USER='{{ COMMON_MYSQL_MIGRATE_USER }}' DB_MIGRATION_PASS='{{ COMMON_MYSQL_MIGRATE_PASS }}' {{ analytics_api_home }}/venvs/{{ analytics_api_service_name }}/bin/python ./manage.py migrate --noinput"
args: "DB_MIGRATION_USER='{{ COMMON_MYSQL_MIGRATE_USER }}' DB_MIGRATION_PASS='{{ COMMON_MYSQL_MIGRATE_PASS }}' {{ analytics_api_home }}/venvs/{{ analytics_api_service_name }}/bin/python ./manage.py migrate --noinput" args:
chdir: "{{ analytics_api_code_dir }}" chdir: "{{ analytics_api_code_dir }}"
become_user: "{{ analytics_api_user }}" become_user: "{{ analytics_api_user }}"
environment: "{{ analytics_api_environment }}" environment: "{{ analytics_api_environment }}"
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
template: template:
src: s3_bucket_virus_scan.sh.j2 src: s3_bucket_virus_scan.sh.j2
dest: "{{ antivirus_app_dir }}/s3_bucket_virus_scan.sh" dest: "{{ antivirus_app_dir }}/s3_bucket_virus_scan.sh"
mode=0555 mode: "0555"
owner: "{{ antivirus_user }}" owner: "{{ antivirus_user }}"
group: "{{ antivirus_user }}" group: "{{ antivirus_user }}"
......
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
- name: create nodeenv - name: create nodeenv
shell: "{{ discovery_venv_dir }}/bin/nodeenv {{ discovery_nodeenv_dir }} --node={{ discovery_node_version }} --prebuilt" shell: "{{ discovery_venv_dir }}/bin/nodeenv {{ discovery_nodeenv_dir }} --node={{ discovery_node_version }} --prebuilt"
args: args:
creates: "{{ discovery_nodeenv_dir }}" creates: "{{ discovery_nodeenv_dir }}"
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
tags: tags:
- install - install
...@@ -95,8 +95,8 @@ ...@@ -95,8 +95,8 @@
- name: install bower dependencies - name: install bower dependencies
shell: ". {{ discovery_nodeenv_bin }}/activate && {{ discovery_node_bin }}/bower install --production --config.interactive=false" shell: ". {{ discovery_nodeenv_bin }}/activate && {{ discovery_node_bin }}/bower install --production --config.interactive=false"
args: args:
chdir: "{{ discovery_code_dir }}" chdir: "{{ discovery_code_dir }}"
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
tags: tags:
- install - install
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
- name: register/start elasticsearch plugin - name: register/start elasticsearch plugin
shell: "./npi add-service {{ ELASTICSEARCH_MONITOR_PLUGIN }} --start --user={{ NEWRELIC_USER }}" shell: "./npi add-service {{ ELASTICSEARCH_MONITOR_PLUGIN }} --start --user={{ NEWRELIC_USER }}"
args: args:
chdir: "{{ NEWRELIC_NPI_PREFIX }}" chdir: "{{ NEWRELIC_NPI_PREFIX }}"
become_user: "root" become_user: "root"
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
- name: install debian packages - name: install debian packages
apt: apt:
pkg: "{{ ",".join(gh_mirror_debian_pkgs) }}" pkg: '{{ ",".join(gh_mirror_debian_pkgs) }}'
state: present state: present
update_cache: yes update_cache: yes
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
file: file:
src: "{{ gitreload_venv_bin }}/{{ item }}" src: "{{ gitreload_venv_bin }}/{{ item }}"
dest: "{{ COMMON_BIN_DIR }}/{{ item }}.gitreload" dest: "{{ COMMON_BIN_DIR }}/{{ item }}.gitreload"
state=link state: "link"
with_items: with_items:
- python - python
- pip - pip
......
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
lineinfile: lineinfile:
dest: /etc/sudoers dest: /etc/sudoers
state: present state: present
regexp: "'^%hadoop ALL\=' line='%hadoop ALL=(ALL) NOPASSWD:ALL'" regexp: '^%hadoop ALL\='
line: '%hadoop ALL=(ALL) NOPASSWD:ALL'
validate: 'visudo -cf %s' validate: 'visudo -cf %s'
- name: check if downloaded and extracted - name: check if downloaded and extracted
...@@ -213,7 +214,7 @@ ...@@ -213,7 +214,7 @@
- name: service directory exists - name: service directory exists
file: file:
path: "{{ HADOOP_COMMON_SERVICES_DIR }}" path: "{{ HADOOP_COMMON_SERVICES_DIR }}"
mode=0750 mode: "0750"
owner: "{{ hadoop_common_user }}" owner: "{{ hadoop_common_user }}"
group: "{{ hadoop_common_group }}" group: "{{ hadoop_common_group }}"
state: directory state: directory
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
- name: install bower dependencies - name: install bower dependencies
shell: ". {{ insights_venv_dir }}/bin/activate && . {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/bower install --production --config.interactive=false" shell: ". {{ insights_venv_dir }}/bin/activate && . {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/bower install --production --config.interactive=false"
args: args:
chdir: "{{ insights_code_dir }}" chdir: "{{ insights_code_dir }}"
become_user: "{{ insights_user }}" become_user: "{{ insights_user }}"
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
- name: compile translations - name: compile translations
shell: ". {{ insights_venv_dir }}/bin/activate && i18n_tool generate -v" shell: ". {{ insights_venv_dir }}/bin/activate && i18n_tool generate -v"
args: args:
chdir: {{ insights_code_dir }}/analytics_dashboard chdir: "{{ insights_code_dir }}/analytics_dashboard"
become_user: "{{ insights_user }}" become_user: "{{ insights_user }}"
tags: tags:
- assets - assets
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
- name: remove bind-address - name: remove bind-address
lineinfile: lineinfile:
dest: /etc/mysql/my.cnf dest: /etc/mysql/my.cnf
regexp: "^bind-address\s+=\s+127\.0\.0\.1$" regexp: '^bind-address\s+=\s+127\.0\.0\.1$'
state: absent state: absent
when: MARIADB_LISTEN_ALL|bool or MARIADB_CLUSTERED|bool when: MARIADB_LISTEN_ALL|bool or MARIADB_CLUSTERED|bool
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
- name: create all analytics dbs - name: create all analytics dbs
mysql_db: mysql_db:
db: {{ item }} db: "{{ item }}"
state: present state: present
encoding: utf8 encoding: utf8
with_items: MARIADB_ANALYTICS_DATABASES with_items: MARIADB_ANALYTICS_DATABASES
......
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