Commit debdcaf4 by Kevin Falcone

Convert from older ansible arg passing syntax

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