Commit debdcaf4 by Kevin Falcone

Convert from older ansible arg passing syntax

parent 9aaf1441
...@@ -21,28 +21,29 @@ ...@@ -21,28 +21,29 @@
# - user # - user
- name: install system packages - name: install system packages
apt: > apt:
pkg={{ item }} pkg: "{{ item }}"
state=present state: present
with_items: ad_hoc_reporting_debian_pkgs with_items: ad_hoc_reporting_debian_pkgs
tags: tags:
- install:system-requirements - install:system-requirements
- name: install python packages - name: install python packages
pip: > pip:
name="{{ item }}" state=present name: "{{ item }}"
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}" state: present
extra_args: "-i {{ COMMON_PYPI_MIRROR_URL }}"
with_items: ad_hoc_reporting_pip_pkgs with_items: ad_hoc_reporting_pip_pkgs
tags: tags:
- install:app-requirements - install:app-requirements
- name: create directories - name: create directories
file: > file:
path="{{ item }}" path: "{{ item }}"
state=directory state: directory
owner=root owner: root
group=root group: root
mode=0755 mode: 0755
with_items: with_items:
- /edx/bin - /edx/bin
tags: tags:
...@@ -55,10 +56,12 @@ ...@@ -55,10 +56,12 @@
#Also, all of the *_REPLICA_DB_HOST vars are only defined #Also, all of the *_REPLICA_DB_HOST vars are only defined
# in secure config files. # in secure config files.
- name: install common mysql replica scripts - name: install common mysql replica scripts
template: > template:
src=edx/bin/mysql.sh.j2 src: edx/bin/mysql.sh.j2
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }} dest: /edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
mode=0755 owner=root group=root mode: 0755
owner: root
group: root
when: COMMON_MYSQL_READ_ONLY_PASS is defined and item.depends_on when: COMMON_MYSQL_READ_ONLY_PASS is defined and item.depends_on
tags: tags:
- scripts - scripts
...@@ -100,10 +103,12 @@ ...@@ -100,10 +103,12 @@
# read_only mongo user, you must override the default # read_only mongo user, you must override the default
# in order for these templates to be written out # in order for these templates to be written out
- name: install mongodb replica scripts - name: install mongodb replica scripts
template: > template:
src=edx/bin/mongo.sh.j2 src: edx/bin/mongo.sh.j2
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }} dest: /edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
mode=0755 owner=root group=root mode: 0755
owner: root
group: root
with_items: with_items:
- db_hosts: "{{ EDXAPP_MONGO_HOSTS }}" - db_hosts: "{{ EDXAPP_MONGO_HOSTS }}"
db_name: "{{ EDXAPP_MONGO_DB_NAME }}" db_name: "{{ EDXAPP_MONGO_DB_NAME }}"
......
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