Commit 3ac02010 by Max Rothman

Address comments

parent 5d2bba3f
...@@ -99,15 +99,10 @@ ...@@ -99,15 +99,10 @@
- name: Update the ssh motd on Ubuntu - name: Update the ssh motd on Ubuntu
file: file:
path: "{{ item.0 }}" path: "{{ item.item }}"
mode: "0644" mode: "0644"
when: > when: >
vagrant_home_dir.stat.exists == false and vagrant_home_dir.stat.exists == false and
ansible_distribution in common_debian_variants and ansible_distribution in common_debian_variants and
item.1.stat.exists item.stat.exists
with_together: with_items: motd_files_exist.results
- - "/etc/update-motd.d/10-help-text"
- "/usr/share/landscape/landscape-sysinfo.wrapper"
- "/etc/update-motd.d/51-cloudguest"
- "/etc/update-motd.d/91-release-upgrade"
- motd_files_exist.results
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
apt: apt:
name: "{{ item }}" name: "{{ item }}"
install_recommends: yes install_recommends: yes
state: present state: present
update_cache: yes update_cache: yes
with_items: "{{ common_custom_debian_pkgs }}" with_items: "{{ common_custom_debian_pkgs }}"
when: > when: >
......
...@@ -115,7 +115,7 @@ common_debian_pkgs: ...@@ -115,7 +115,7 @@ common_debian_pkgs:
- python-pip - python-pip
- python2.7-dev - python2.7-dev
# Packages that should be installed from our custom PPA, i.e. COMMON_EDX_PPA # Packages that should be installed from our custom PPA, i.e. COMMON_EDX_PPA
common_custom_debian_pkgs: common_custom_debian_pkgs:
- "python2.7=2.7.10-0+{{ ansible_distribution_release }}1" - "python2.7=2.7.10-0+{{ ansible_distribution_release }}1"
......
...@@ -121,19 +121,7 @@ ...@@ -121,19 +121,7 @@
dest: "/etc/init/{{ supervisor_service }}.conf" dest: "/etc/init/{{ supervisor_service }}.conf"
owner: root owner: root
group: root group: root
when: ansible_distribution_major_version < 16 when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 16
tags:
- install
- install:base
# NB: with systemd, pre_supervisor is a pre-task for supervisor, not a separate service
- name: Create supervisor systemd job
template:
src: "etc/init/supervisor-systemd.service.j2"
dest: "/etc/systemd/system/{{ supervisor_service }}.service"
owner: root
group: root
when: ansible_distribution_major_version >= 16
tags: tags:
- install - install
- install:base - install:base
...@@ -149,11 +137,23 @@ ...@@ -149,11 +137,23 @@
group: root group: root
when: > when: >
supervisor_service == "supervisor" and disable_edx_services and not devstack supervisor_service == "supervisor" and disable_edx_services and not devstack
and ansible_distribution_major_version < 16 and ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 16
tags: tags:
- to-remove - to-remove
- aws-specfic - aws-specfic
# NB: with systemd, pre_supervisor is a pre-task for supervisor, not a separate service
- name: Create supervisor systemd job
template:
src: "etc/init/supervisor-systemd.service.j2"
dest: "/etc/systemd/system/{{ supervisor_service }}.service"
owner: root
group: root
when: not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 16)
tags:
- install
- install:base
- name: Write the pre_suprevisor python script - name: Write the pre_suprevisor python script
copy: copy:
src: pre_supervisor_checks.py src: pre_supervisor_checks.py
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
service: service:
name: "{{ supervisor_service }}.service" name: "{{ supervisor_service }}.service"
enabled: yes enabled: yes
when: ansible_distribution_major_version >= 16 when: not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 16)
tags: tags:
- install - install
- install:base - install:base
......
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