Commit 01f5ea1c by Feanil Patel Committed by GitHub

Merge pull request #3461 from edx/feanil/retire_xenial_hosts

Feanil/retire xenial hosts
parents da578d17 1ca28753
......@@ -11,9 +11,11 @@
- name: Stop all services
hosts: "{{TARGET}}"
become: True
gather_facts: False
vars:
STOP_ALL_EDX_SERVICES_EXTRA_ARGS: "--no-wait"
gather_facts: True
pre_tasks:
- set_fact:
STOP_ALL_EDX_SERVICES_EXTRA_ARGS: "--no-wait"
when: ansible_distribution_release == 'precise' or ansible_distribution_release == 'trusty'
roles:
- stop_all_edx_services
......@@ -23,7 +25,7 @@
gather_facts: False
tasks:
- name: Terminate existing object store log sync
command: /usr/bin/pkill send-logs-to-object-store || true
shell: /usr/bin/pkill send-logs-to-object-store || true
- name: "Ensure send-logs-to-object-store script is in the logrotate file"
shell: grep send-logs-to-object-store /etc/logrotate.d/hourly/tracking.log
# We only force a rotation of edx logs.
......
......@@ -61,6 +61,27 @@
- install
- install:base
- name: Ensure the tracking folder exists
file:
path: "{{ COMMON_LOG_DIR }}/tracking"
state: directory
owner: root
group: root
tags:
- install
- install:base
- name: Ensure the tracking.log file exists
file:
path: "{{ COMMON_LOG_DIR }}/tracking/tracking.log"
state: touch
owner: syslog
group: adm
mode: "0640"
tags:
- install
- install:base
- name: create web-writable edxapp data dirs
file:
path: "{{ item }}"
......@@ -81,10 +102,10 @@
- name: add ppas for current versions of nodejs
apt_repository:
repo: "{{ edxapp_chrislea_ppa }}"
when: ansible_distribution_release == 'precise'
tags:
- install
- install:base
when: ansible_distribution_release == 'precise'
- name: install system packages on which LMS and CMS rely
apt:
......
......@@ -62,5 +62,13 @@
notify:
- stop mongodb
- name: Stop supervisor systemd
stat:
path: /etc/systemd/system/supervisor.service
register: stat_out
changed_when: stat_out is defined and stat_out.stat.exists
notify:
- stop supervisor
- shell: "true"
notify: kill processes by user
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